python 2(而不是python 3)作为(临时)默认python?

python 2(而不是python 3)作为(临时)默认python?,第1张

python 2(而不是python 3)作为(临时)默认python?

您可以使用virtualenv

# Use this to create your temporary python "install"# (Assuming that is the correct path to the python interpreter you want to use.)virtualenv -p /usr/bin/python2.7 --distribute temp-python# Type this command when you want to use your temporary python.# While you are using your temporary python you will also have access to a temporary pip,# which will keep all packages installed with it separate from your main python install.# A shorter version of this command would be ". temp-python/bin/activate"source temp-python/bin/activate# When you no longer wish to use you temporary python typedeactivate

享用



欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5618084.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-12-15
下一篇 2022-12-15

发表评论

登录后才能评论

评论列表(0条)

保存