如何将模块安装到已安装在全局环境中的虚拟环境中

时间:2016-11-30 01:08:12

标签: python matplotlib virtualenv

我尝试将matplotlib安装到我的虚拟环境中,但它没有安装,如下面的消息。它似乎已经在global / user / lib64目录下了。如何将其安装到我的虚拟环境中?如果我不安装它,我就无法在我的虚拟环境中导入它。

(my_env) [abigail@localhost environments]$ sudo pip install matplotlib
Requirement already satisfied: matplotlib in /usr/lib64/python3.5/site-packages
Requirement already satisfied: pytz in /usr/lib/python3.5/site-packages (from matplotlib)
Requirement already satisfied: cycler in /usr/lib/python3.5/site-packages (from matplotlib)
Requirement already satisfied: python-dateutil in /usr/lib/python3.5/site-packages (from matplotlib)
Requirement already satisfied: numpy>=1.6 in /usr/lib64/python3.5/site-packages (from matplotlib)
Requirement already satisfied: pyparsing!=2.0.0,!=2.0.4,!=2.1.2,>=1.5.6 in /usr/lib/python3.5/site-packages (from matplotlib)
Requirement already satisfied: six in /usr/lib/python3.5/site-packages (from cycler->matplotlib)

0 个答案:

没有答案