当前位置:网站首页>Installation and uninstallation of pyenv
Installation and uninstallation of pyenv
2022-07-03 09:27:00 【Song infinite】
step0
It is recommended to use root User action , Prevent unexplained problems . Summarize the various tutorials you have seen before .
step1
Use the following command to clone GitHub Code warehouse to ~/.pyenv Under the table of contents
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
Use vim ~/.bashrc
The command adds the following statement to it :
export PYENV_ROOT="$HOME/.pyenv"
export PATH="$PYENV_ROOT/bin:$PATH"
eval "$(pyenv init -)"
Reuse source ~/.bashrc
Command refresh , It's done. pyenv Installed. .
step2
Use the following command to install Python edition :
pyenv install Version number
If the speed is slow, you can check the article here : solve pyenv install The problem of slow download speed _WuJian_Home The blog of -CSDN Blog
step3
After installation , You can install the virtual environment plug-in , Use the following command to install :
git clone https://github.com/pyenv/pyenv-virtualenv.git $(pyenv root)/plugins/pyenv-virtualenv
Reuse vim ~/.bashrc
The command adds the following statement to it :
eval "$(pyenv virtualenv-init -)"
Reuse source ~/.bashrc
Command refresh , The installation is complete .
step4
Use the following statement to create a virtual environment
pyenv virtualenv Version number Environment name
Be careful : Version number needs to be earlier than pyenv Installed in Python Same version number .
step5
Activate the virtual environment with the following command :
pyenv activate Environment name
Use pyenv deactivate
Out of the environment .
Use rm -rf ~/.pyenv/versions/ Environment name
Delete environment .
step6
uninstall pyenv when , Just delete ~/.pyenv Catalog 、 Delete ~/.bashrc The part added above in the document is sufficient .
边栏推荐
- Simple use of MATLAB
- 解决Editor.md上传图片获取不到图片地址问题
- 【点云处理之论文狂读经典版7】—— Dynamic Edge-Conditioned Filters in Convolutional Neural Networks on Graphs
- WARNING: You are using pip version 21.3.1; however, version 22.0.3 is available. Prompt to upgrade pip
- [point cloud processing paper crazy reading classic version 10] - pointcnn: revolution on x-transformed points
- 【毕业季|进击的技术er】又到一年毕业季,一毕业就转行,从动物科学到程序员,10年程序员有话说
- Spark 集群安装与部署
- Matlab dichotomy to find the optimal solution
- Hudi 集成 Spark 数据分析示例(含代码流程与测试结果)
- 【Kotlin疑惑】在Kotlin类中重载一个算术运算符,并把该运算符声明为扩展函数会发生什么?
猜你喜欢
PolyWorks script development learning notes (III) -treeview advanced operation
About the configuration of vs2008+rade CATIA v5r22
[point cloud processing paper crazy reading classic version 7] - dynamic edge conditioned filters in revolutionary neural networks on Graphs
NPM install installation dependency package error reporting solution
Temper cattle ranking problem
Hudi integrated spark data analysis example (including code flow and test results)
Hudi learning notes (III) analysis of core concepts
Windows安装Redis详细步骤
Move anaconda, pycharm and jupyter notebook to mobile hard disk
Modify idea code
随机推荐
LeetCode每日一题(2212. Maximum Points in an Archery Competition)
[point cloud processing paper crazy reading classic version 7] - dynamic edge conditioned filters in revolutionary neural networks on Graphs
2022-2-13 learn the imitation Niuke project - Project debugging skills
【点云处理之论文狂读经典版7】—— Dynamic Edge-Conditioned Filters in Convolutional Neural Networks on Graphs
Django operates Excel files through openpyxl to import data into the database in batches.
Banner - Summary of closed group meeting
NPM install installation dependency package error reporting solution
Apply for domain name binding IP to open port 80 record
STM32F103 can learning record
2022-2-13 learning xiangniuke project - version control
Redis learning (I)
Crawler career from scratch (IV): climb the bullet curtain of station B through API
ERROR: certificate common name “*.” doesn’t match requested ho
Hudi quick experience (including detailed operation steps and screenshots)
Flask+supervisor installation realizes background process resident
About the configuration of vs2008+rade CATIA v5r22
从0开始使用pnpm构建一个Monorepo方式管理的demo
Tag paste operator (#)
Use the interface colmap interface of openmvs to generate the pose file required by openmvs mvs
Database execution error: SQL_ mode only_ full_ group_ by: