当前位置:网站首页>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 classic version 12] - foldingnet: point cloud auto encoder via deep grid deformation
- Usage of pandas to obtain MySQL data
- Introduction to the basic application and skills of QT
- Hudi learning notes (III) analysis of core concepts
- WARNING: You are using pip version 21.3.1; however, version 22.0.3 is available. Prompt to upgrade pip
- [kotlin learning] classes, objects and interfaces - define class inheritance structure
- Trial of the combination of RDS and crawler
- Integrated use of interlij idea and sonarqube
- Hudi 集成 Spark 数据分析示例(含代码流程与测试结果)
- LeetCode每日一题(1362. Closest Divisors)
猜你喜欢

2022-2-14 learning xiangniuke project - generate verification code

Go language - JSON processing

Spark 集群安装与部署
![[advanced feature learning on point clouds using multi resolution features and learning]](/img/f0/abed28e94eb4a95c716ab8cecffe04.png)
[advanced feature learning on point clouds using multi resolution features and learning]

Detailed steps of windows installation redis

Data mining 2021-4-27 class notes

Hudi quick experience (including detailed operation steps and screenshots)

Spark structured stream writing Hudi practice

Idea uses the MVN command to package and report an error, which is not available

【点云处理之论文狂读前沿版11】—— Unsupervised Point Cloud Pre-training via Occlusion Completion
随机推荐
[point cloud processing paper crazy reading classic version 13] - adaptive graph revolutionary neural networks
Install database -linux-5.7
Construction of simple database learning environment
[kotlin learning] operator overloading and other conventions -- overloading the conventions of arithmetic operators, comparison operators, sets and intervals
[point cloud processing paper crazy reading classic version 12] - foldingnet: point cloud auto encoder via deep grid deformation
Spark 概述
[graduation season | advanced technology Er] another graduation season, I change my career as soon as I graduate, from animal science to programmer. Programmers have something to say in 10 years
专利查询网站
Modify idea code
Flink学习笔记(十)Flink容错机制
Trial of the combination of RDS and crawler
Apply for domain name binding IP to open port 80 record
Hudi quick experience (including detailed operation steps and screenshots)
Idea uses the MVN command to package and report an error, which is not available
Jenkins learning (II) -- setting up Chinese
The less successful implementation and lessons of RESNET
Common formulas of probability theory
Go language - JSON processing
Data mining 2021-4-27 class notes
从0开始使用pnpm构建一个Monorepo方式管理的demo