# Python 2 pip install matplotlib
# Python 3 pip3 install matplotlib
sudo pip3 install matplotlib
$ sudo apt-get update $ sudo apt-get install python3.6
$ sudo apt-get install software-properties-common $ sudo add-apt-repository ppa:deadsnakes/ppa $ sudo apt-get update $ sudo apt-get install python3.6
$ sudo dnf install python3
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
export PATH="/usr/local/opt/python/libexec/bin:$PATH"
export PATH=/usr/local/bin:/usr/local/sbin:$PATH
brew install python
root@Py:~# apt-get update -y
root@py:~# apt-get install -y python3-venv
pip3 install virtualenv
root@py:~# python3 -m venv py_venv
root@py:~# source py_venv/bin/activate
pip3 install virtualenv
cd my-project virtualenv --python C:\Path\To\Python\python.exe py_env
.\py_env\Scripts\activate
sudo pip install virtualenv
sudo -H pip install virtualenv
virtualenv py_env
source py_env/bin/activate
pip3 install matplotlib
# Python 2 pip install matplotlib
# Execute The code with Python 3 python3 my_code.py
聯(lián)系客服