gpt4 book ai didi

python - PyPi站 pip 缺少sys,subprocess和timeit软件包

转载 作者:行者123 更新时间:2023-12-02 20:35:07 27 4
gpt4 key购买 nike

在过去的三个月中,我已经在 Centos7.8 上开发了一些面向系统的应用程序 Python ( Python3.6.9 )。
这些应用程序使用 sys 子进程 timeit 软件包,这些软件包于2020年5月由 pip安装安装。
现在,我被要求使用这些应用程序创建一个 Docker容器,并尝试 pip安装容器中列出的软件包(从 sys 开始):

sudo docker run -i -t centos/python-36-centos7 /bin/bash
(app-root) python -V
Python 3.6.9

(app-root) pip install sys
ERROR: Could not find a version that satisfies the requirement sys (from versions: none)
ERROR: No matching distribution found for sys
找不到列出的软件包,并且安装失败并显示相同的错误消息。
可能是什么问题,我应该如何解决?
谢谢
泽夫

最佳答案

Sys,subprocess,timeit等是python的标准库(您无需安装它们,它们带有pyhton安装候选程序),因此使用pip来安装它们是毫无用处的。只需重新安装python,也许您的python的标准库就会被其他第三方程序包覆盖。

关于python - PyPi站 pip 缺少sys,subprocess和timeit软件包,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63620989/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com