当前位置:网站首页>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 .
边栏推荐
- Jenkins learning (II) -- setting up Chinese
- 基于opencv实现桌面图标识别
- Hudi 集成 Spark 数据分析示例(含代码流程与测试结果)
- Data mining 2021-4-27 class notes
- [kotlin puzzle] what happens if you overload an arithmetic operator in the kotlin class and declare the operator as an extension function?
- Win10 quick screenshot
- Principles of computer composition - cache, connection mapping, learning experience
- PolyWorks script development learning notes (III) -treeview advanced operation
- Solve POM in idea Comment top line problem in XML file
- On February 14, 2022, learn the imitation Niuke project - develop the registration function
猜你喜欢

Crawler career from scratch (3): crawl the photos of my little sister ③ (the website has been disabled)

解决Editor.md上传图片获取不到图片地址问题

Hudi quick experience (including detailed operation steps and screenshots)

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

Beego learning - Tencent cloud upload pictures

CATIA automation object architecture - detailed explanation of application objects (I) document/settingcontrollers

2022-2-14 learning xiangniuke project - Session Management

Modify idea code

Construction of simple database learning environment

Apply for domain name binding IP to open port 80 record
随机推荐
【Kotlin疑惑】在Kotlin类中重载一个算术运算符,并把该运算符声明为扩展函数会发生什么?
【点云处理之论文狂读前沿版13】—— GAPNet: Graph Attention based Point Neural Network for Exploiting Local Feature
Notes on numerical analysis (II): numerical solution of linear equations
Flink-CDC实践(含实操步骤与截图)
Spark 集群安装与部署
Hudi 快速体验使用(含操作详细步骤及截图)
Computing level network notes
基于opencv实现桌面图标识别
Jenkins learning (I) -- Jenkins installation
Filter comments to filter out uncommented and default values
Overview of image restoration methods -- paper notes
2022-2-13 learning the imitation Niuke project - home page of the development community
[kotlin learning] classes, objects and interfaces - define class inheritance structure
Jestson Nano 从tftp服务器下载更新kernel和dtb
Detailed steps of windows installation redis
从0开始使用pnpm构建一个Monorepo方式管理的demo
文件系统中的目录与切换操作
Flink学习笔记(十)Flink容错机制
Tag paste operator (#)
【Kotlin学习】类、对象和接口——带非默认构造方法或属性的类、数据类和类委托、object关键字