Setup python virtual environment
1. install pip
2. install virtualenvwrapper
pip install virtualenvwrapper
3. setup env
if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
fi
4. reread .bash_profile
source $HOME/.bash_profile
5. create a special python version
mkvirtualenv --python=/usr/bin/python2.7 pangu
6. enter 'pangu' virtual environment
workon pangu
7. exit 'pangu' virtual environment
deactivate
2. install virtualenvwrapper
pip install virtualenvwrapper
3. setup env
if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then
export WORKON_HOME=$HOME/.virtualenvs
source /usr/local/bin/virtualenvwrapper.sh
fi
4. reread .bash_profile
source $HOME/.bash_profile
5. create a special python version
mkvirtualenv --python=/usr/bin/python2.7 pangu
6. enter 'pangu' virtual environment
workon pangu
7. exit 'pangu' virtual environment
deactivate
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/30083145/viewspace-1729267/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- CS540 Python Virtual EnvironmentPython
- PVE(Proxmox Virtual Environment) 安裝配置iStoreOS筆記筆記
- How to Configure and Run Spyder Python Editor in Virtual EnvironmentsPython
- setup
- Oracle environment variableOracle
- [Bash] Environment variables
- mysql-python安裝時Environment Error: mysql_config not foundMySqlPythonError
- MyBatis-03-environmentMyBatis
- Get Oracle Environment InformaticaOracleORM
- Spring系列.Environment介面Spring
- Linux: Desktop Environment DE GUILinuxGUI
- swiftUI-@Environment的作用SwiftUI
- error: externally-managed-environmentError
- Vue 3 setupVue
- SETUP(安裝)
- Oracle Audit setupOracle
- 17-Containers-Container Environment VariablesAI
- Qt QML之 JavaScript Host EnvironmentQTJavaScript
- GitLab 實現動態 Environment URLGitlab
- Lecture 05 Real-time Environment MappingAPP
- HTTPs setup - Certbot + Docker + NginxHTTPDockerNginx
- linux之__setup函式Linux函式
- ZOJ4043 : Virtual Singers
- 利用Virtual Dom的作用
- 何為Virtual DOM(VDOM)
- Virtual-DOM的理解
- virtual DOM快在哪裡?
- Azure Virtual Machine (Azure for Students)Mac
- Setup Standby Database on One PC(轉)Database
- vue3 script setup 定稿Vue
- Virtual box設定網路
- Configuring the launch of the remote virtual machine to debugREMMac
- The Ethereum Virtual Machine(EVM)簡介Mac
- 深入框架本源系列 —— Virtual Dom框架
- VNC(Virtual Network Computing)服務VNC
- 【等待事件】virtual circuit next request事件UI
- pip install ... ERROR: UnicodeDecodeError: ‘gbk‘ codec can‘t decode/ python setup.py egg_info CheckErrorUnicodePython
- Setup MariaDB Master/Slave Replication for Docker MariaDBASTDocker
- Pyetst的四種setup和testdown