发布网友 发布时间:2022-04-23 01:01
共1个回答
热心网友 时间:2023-10-09 16:54
#把pip文件软连接到系统目录中
cd /usr/local
python
[willie@localhost ]$ python
Python 2.7.12 (default, Nov 22 2016, 17:23:24)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-17)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import os
>>> for r,d,f in os.walk('.'):
... if f=='pip':
... origin=os.path.join(r,d,f)
... break
...
>>> os.popen('ln -s {} bin/pip'.format(origin))
或者如下更快捷:
追问多谢,问题已经解决了,的确是没有添加path