美文网首页
vitualenvwrapper

vitualenvwrapper

作者: 听闻不见 | 来源:发表于2018-02-03 13:40 被阅读0次

Install

Find the path of the version of python that you want to use

which python

Find the path of virtualenvwrapper.sh

find / -name virtualenvwrapper.sh

/home/lingxt/.local/bin/virtualenvwrapper.sh

Edit the .bashrc file

export WORKON_HOME=$HOME/.virtualenvs
export VIRTUALENVWRAPPER_PYTHON=/usr/bin/python3.7
source /usr/local/bin/virtualenvwrapper.sh
export VIRTUALENVWRAPPER_ENV_BIN_DIR=bin 

install virtualenv and virtualenvwrapper

sudo pip3 install virtualenv virtualenvwrapper

Use

Check the list of environment

workon

Create new environment

mkvirtualenv env_name -p path_to_python

Reference

  1. https://towardsdatascience.com/installing-opencv-3-4-3-on-raspberry-pi-3-model-b-e9af08a9f1d9

相关文章

网友评论

      本文标题:vitualenvwrapper

      本文链接:https://www.haomeiwen.com/subject/whduzxtx.html