我正在执行python
脚本,就像这个网站上写的一样,它工作正常,但我的Python3
只使用没有pip安装的软件包:就像sudo apt install python3-pandas
一样。因此,当我以这种方式安装软件包时,我得到了旧版本的Pandas
并且我无法使用series.to_list()
因为我有版本22
并且to_list()
来自24 +。当我尝试用pip
更新现有软件包时,它会更新pandas
但我无法更新安装的软件包sudo apt install python3-pandas
因为没有新版本。所以我想用pip
执行ExecStart=/usr/bin/python3 /usr/bin/dummy_service.py
可能吗????
或者有没有办法写这个
not_null = not_null["id"].to_list() # not_null is DataFrame
没有to_list()
?
即使不使用 pip 也可以安装软件包 您可以从 https://github.com/pandas-dev/pandas 克隆熊猫,然后在熊猫目录中运行命令
python setup.py install