当前位置:网站首页>使用 PyCharm 设置虚拟环境
使用 PyCharm 设置虚拟环境
2022-07-19 05:43:00 【Mark_Aussie】
最近需要将一个python 3.8 的代码转为 python 2.7使用,需要一个python2.7的环境,记录一下如何在pycharm上设置使用。
首先要先下载安装python2.7,安装后的目录:C:\Python27
之后打开pycharm,在file中新建project,输入project名称(如:VPython),新建环境,选择Virtualenv,Base Interpreter选择python2.7的安装目录中的python.exe
在setting中选择python interpreter,添加环境
虚拟环境中用到的包,要通过下图中的 “+” 号添加
进入后可寻找需要的包,选择特定版本,install则会安装,显示successful安装成功,manage可以更换安装源地址;注:首词可能需要重启才能成功安装。
边栏推荐
- Introduction to 3dslicer default extension module interface
- 8day
- 3DSlicer导入医学图像数据
- Kubernetes 高可用API Server
- Modelsim报错“Instantiation of ‘****‘ failed. The design unit was not found.”
- FPGA仿真时使用任务及随机函数编写激励测试文件
- Impala元数据缓存的生命周期
- Implementation of UART serial asynchronous communication with FPGA - transmission of single data
- .NET下IN关键字下多个并列参数的参数化
- ikbc键盘win键失效的解决方法
猜你喜欢
随机推荐
3DSlicer简介与安装教程
如何用函数调用两个数的大小?---小唐
错误的locale设置导致Impala crash
FPGA之阻塞赋值与非阻塞赋值的理解
17day
playwright教程(二)适合小白
div拖拽效果
Self controlled and next city! Release of the first domestic artiq architecture quantum computing measurement and control system
微信小程序应用开发赛作品综合开发记录——晋鹿文旅(云开发——概览)
华为机试:单词搜索
Use tasks and random functions to write excitation test files during FPGA simulation
超链接的使用
Kubernetes技术与架构(四)
GC tuning principle of JVM (12)
Data type conversion
C语言标准格式化输入输出
3DSlicer导入锥束CT图像
JVM之GC调优原理(十)
如何在Apache JIRA中搜索issue
Modelsim reported an error "instance of '* * * *' failed. the design unit was not found."