安装pip导入模块

时间:2018-01-03 16:32:57

标签: python ubuntu matplotlib pip

我正在尝试将matplotlib和scipy安装到python,并使用pip来实现。但是,当我尝试使用pip install scipy --myuser安装scipy时,我收到了消息:

  

无效要求' - myuser'

之前我使用pip和

安装了numpy
python get-pip.py —myuser

pip install numpy —myuser

这很好用,所以我不确定这里的问题是什么。

这是令人沮丧的,因为我想从终端而不是从我的Windows桌面使用python。

3 个答案:

答案 0 :(得分:3)

如果要安装给用户,请尝试以下命令:

pip install --user scipy

以下是pip命令的帮助:

pip install --help

  --user                      Install to the Python user install directory for
                              your platform. Typically ~/.local/, or
                              %APPDATA%\Python on Windows. (See the Python
                              documentation for site.USER_BASE for full
                              details.)

答案 1 :(得分:2)

您应该可以在不使用--myuser参数的情况下安装它。

sudo python3 -m pip install scipy
sudo python3 -m pip install matplotlib

或全部在一个

sudo python3 -m pip install scipy matplotlib

答案 2 :(得分:0)

试试这个:

UIButton!

相关问题