[英]Installing matplotlib on Python 3.5.2 | Ubuntu 16.04 LTS
I tried to install matplotlib by command line: 我试图通过命令行安装matplotlib:
sudo env 'PATH=$PATH:/home/lukasz/.local/bin' pip install matplotlibpip install --upgrade setuptools
But this error occured: 但是发生了此错误:
sudo env 'python setup.py egg_info" failed with error code 1
I was following steps from pip install returns "python setup.py egg_info" failed with error code 1 but i had error with command 我正在按照以下步骤从pip安装返回“ python setup.py egg_info”,失败,错误代码为1,但命令出现错误
pip install --upgrade setuptools
: PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/__pycache__/easy_install.cpython-35.pyc
. pip install --upgrade setuptools
: PermissionError: [Errno 13] Permission denied: '/usr/lib/python3/dist-packages/__pycache__/easy_install.cpython-35.pyc
pip install --upgrade setuptools
。
What can I do next? 接下来我该怎么办?
I don't know if this will help achieve what you want, but try: 我不知道这是否可以帮助您实现所需的目标,但是请尝试:
sudo pip3 install matplotlib
On the command line. 在命令行上。
try this: 尝试这个:
sudo -H pip3 install --upgrade setuptools
and then: 接着:
> sudo apt install libfreetype6-dev pkg-config
And then: 接着:
> pip3 install --user matplotlib
or: 要么:
> sudo -H pip3 install matplotlib
I just installed it following the above steps. 我只是按照上述步骤安装了它。
尝试一下,它对我有用:
sudo apt-get install python-matplotlib
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.