将 PIP 与 systemctl 一起使用



我正在执行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

最新更新