我要求pip安装一个包。它说它安装了它,但它不在那里!
$ virtualenv --python python3 asdf
Running virtualenv with interpreter /usr/bin/python3
Using base prefix '/usr'
New python executable in /home/app/asdf/bin/python3
Also creating executable in /home/app/asdf/bin/python
Installing setuptools, pip, wheel...done.
$ . asdf/bin/activate
$ pip install pygments
Collecting pygments
Using cached https://files.pythonhosted.org/packages/02/ee/b6e02dc6529e82b75bb06823ff7d005b141037cb1416b10c6f00fc419dca/Pygments-2.2.0-py2.py3-none-any.whl
Installing collected packages: pygments
Successfully installed pygments-2.2.0
$ pip list
Package Version
---------- -------
pip 10.0.1
setuptools 39.1.0
wheel 0.31.1
Pip版本为10.0.1
,这是一个Amazon Linux(CentOS)系统。 您希望asdf/lib64/python3.6/dist-packages/pygments/
上的文件,但asdf/lib/python3.6/site-packages
中没有。我不知道这里发生了什么。有人请帮忙吗?