当前位置:网站首页>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 .
边栏推荐
- [point cloud processing paper crazy reading frontier edition 13] - gapnet: graph attention based point neural network for exploring local feature
- Simple use of MATLAB
- CATIA automation object architecture - detailed explanation of application objects (I) document/settingcontrollers
- LeetCode每日一题(1024. Video Stitching)
- Navicat, MySQL export Er graph, er graph
- Overview of database system
- LeetCode每日一题(1856. Maximum Subarray Min-Product)
- 2022-2-14 learning xiangniuke project - generate verification code
- [point cloud processing paper crazy reading classic version 8] - o-cnn: octree based revolutionary neural networks for 3D shape analysis
- Spark structured stream writing Hudi practice
猜你喜欢
图像修复方法研究综述----论文笔记
Win10 quick screenshot
LeetCode每日一题(1162. As Far from Land as Possible)
Solve POM in idea Comment top line problem in XML file
[point cloud processing paper crazy reading frontier version 10] - mvtn: multi view transformation network for 3D shape recognition
[kotlin learning] classes, objects and interfaces - classes with non default construction methods or attributes, data classes and class delegates, object keywords
Flask+supervisor installation realizes background process resident
2022-2-14 learning the imitation Niuke project - send email
Flink学习笔记(九)状态编程
Beego learning - Tencent cloud upload pictures
随机推荐
【Kotlin学习】运算符重载及其他约定——重载算术运算符、比较运算符、集合与区间的约定
Detailed steps of windows installation redis
[point cloud processing paper crazy reading frontier edition 13] - gapnet: graph attention based point neural network for exploring local feature
Crawler career from scratch (II): crawl the photos of my little sister ② (the website has been disabled)
LeetCode每日一题(1856. Maximum Subarray Min-Product)
IDEA 中使用 Hudi
Windows安装Redis详细步骤
LeetCode每日一题(1996. The Number of Weak Characters in the Game)
LeetCode每日一题(516. Longest Palindromic Subsequence)
Build a solo blog from scratch
Jestson Nano 从tftp服务器下载更新kernel和dtb
The server denied password root remote connection access
[point cloud processing paper crazy reading classic version 8] - o-cnn: octree based revolutionary neural networks for 3D shape analysis
Filter comments to filter out uncommented and default values
[point cloud processing paper crazy reading cutting-edge version 12] - adaptive graph revolution for point cloud analysis
[kotlin learning] control flow of higher-order functions -- lambda return statements and anonymous functions
LeetCode每日一题(1162. As Far from Land as Possible)
[point cloud processing paper crazy reading frontier version 11] - unsupervised point cloud pre training via occlusion completion
LeetCode每日一题(2109. Adding Spaces to a String)
[point cloud processing paper crazy reading classic version 9] - pointwise revolutionary neural networks