Skip to content
Permalink
master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Go to file
 
 
Cannot retrieve contributors at this time

Establish a virtual environment in local

  1. Install virtualenv
pip3 install virtualenv virtualenvwrapper
  1. Modify your '.bashrc'
vim .bashrc
  • Virtualenvwrapper settings:
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3
export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_VIRTUALENV=$HOME/.local/bin/virtualenv
source ~/.local/bin/virtualenvwrapper.sh
  1. Check your modifications
ll .virtualenvs/
echo $WORKON_HOME
  1. Create a new environment and copy the created envo to create a similar one
mkvirtualenv jupyter --python=python3
cpvirtualenv jupyter ase

workon jupyter

pip install sympy
pip install numpy
pip install matplotlib
pip install scipy
pip install jupyterlab
  1. Deactivate the environment
deactivate
  1. Remove the environment
rmvirtualenv juypter
  • important other python lines
import numpy
print(numpy.__version__)
print(matplotlib.__version__)