使用pip成功安装mysqlclient。但在虚拟环境中不存在mysqlclient

时间:2018-11-09 09:35:26

标签: python pip centos

我想在虚拟环境中用pip安装mysqlclient。那就是成功...?但是我在虚拟环境中找不到该模块。为什么?

# cd /root
# source venv/bin/activate
# pip freeze
# pip install mysqlclient
Collecting mysqlclient
Installing collected packages: mysqlclient
Successfully installed mysqlclient-1.3.13

# pip freeze
# pip uninstall mysqlclient
Skipping mysqlclient as it is not installed.

# which pip
/root/venv/bin/pip

0 个答案:

没有答案