我是Linux新手,我正试图在SUSE Linux中安装python包。我尝试了以下选项
备选案文1:
zypper install python-pip
Loading repository data...
Warning: No repositories defined. Operating only with the installed resolvables. Nothing can be installed.
Reading installed packages...
Package 'python-pip' not found.
Resolving package dependencies...
Nothing to do.备选案文2:
python get-pip.py
python: can't open file 'get-pip.py': [Errno 2] No such file or directory我已经安装了python,但是我在/usr/bin中看到了多个python文件。可能是因为
# find / -executable -name 'python*'
/home/db2inst1/sqllib/python32
/home/db2inst1/sqllib/python64
/usr/include/python2.7
/usr/lib64/python
/usr/lib64/python2.7
/usr/bin/python
/usr/bin/python2.7
/usr/bin/python2
/usr/share/doc/packages/python-pycparser
/usr/share/doc/packages/python-Jinja2
/usr/share/doc/packages/python-pyzmq
/usr/share/doc/packages/python-PyYAML
/usr/share/doc/packages/python-pyasn1
/usr/share/doc/packages/python-gobject2
/usr/share/doc/packages/python-gobject
/usr/share/doc/packages/python-psutil
/usr/share/licenses/python-requests
/usr/share/licenses/python-cffi
/usr/share/licenses/python-PyYAML
/usr/share/licenses/python-certifi
/usr/share/licenses/python-cryptography
/usr/share/licenses/python-singledispatch
/usr/lib/python2.6
/usr/lib/rpm/python-macro-helper
/usr/lib/rpm/pythondeps.sh
/usr/lib/python2.7
/opt/ibm/db2/V10.5/dsdriver/python32
/opt/ibm/db2/V10.5/dsdriver/python64发布于 2022-02-24 18:36:08
你能试试这个吗?
如果您的内部SUSE repos提供所需的包,则
zypper搜索"package-name"
如果
zypper安装-强制-分辨率"python3“zypper安装-强制-分辨率”python3 3-pip“
一旦安装了
安装"package-name" python3 -m pip
同样,对于其他包也是如此。
https://stackoverflow.com/questions/70118367
复制相似问题