我想知道为什么如果你同时拥有python 2和3,python 3在它的文件夹中没有包,但是p2拥有它们。如果没有任何东西,python3如何运行?到目前为止两者都在工作
cchilders:/usr/local/lib$ cd python3.4/
cchilders:/usr/local/lib/python3.4$ ls
dist-packages
cchilders:/usr/local/lib/python3.4$ cd dist-packages/
cchilders:/usr/local/lib/python3.4/dist-packages$ ls
cchilders:/usr/local/lib/python3.4$ up
/usr/local/lib
python2.7 python3.4
cchilders:/usr/local/lib/python3.4$ up
/usr/local/lib
python2.7 python3.4
cchilders:/usr/local/lib$ cd python2.7/
cchilders:/usr/local/lib/python2.7$ ls
dist-packages site-packages
cchilders:/usr/local/lib/python2.7$ cd site-packages/
cchilders:/usr/local/lib/python2.7/site-packages$ ls
cchilders:/usr/local/lib/python2.7/site-packages$ up
/usr/local/lib/python2.7
dist-packages site-packages
cchilders:/usr/local/lib/python2.7$ cd dist-packages/
cchilders:/usr/local/lib/python2.7/dist-packages$ ls
amqp pexpect-4.0.1.egg-info
amqp-1.4.9.dist-info pickleshare-0.6.dist-info
anyjson pickleshare.py
anyjson-0.3.3.egg-info pickleshare.pyc
安装ipython3之后,似乎python3在所有
之后都无法访问其他包答案 0 :(得分:2)
这可能是由于: