spyder使用虚拟环境_如何在虚拟环境中运行Spyder?

本文介绍了如何在Anaconda的虚拟环境中便捷地运行Spyder。首先,创建一个带有特定Python版本(如3.4)的虚拟环境,然后激活该环境。在Ubuntu 18.04上,需要在激活环境后使用conda安装Spyder。通过这种方式,可以避免繁琐的依赖项安装,并直接使用命令`spyder`启动Spyder,确保它使用的是正确版本的Python。
摘要由CSDN通过智能技术生成

I have been using Spyder installed with with Anaconda distribution which uses Python 2.7 as default. Currently I need to set up a development virtual environment with Python 3.4.

Top two suggestions after research online are:

to set up virtual environment first and to point change the preferences of Spyder , e.g here;

to install all Spyder dependencies, like PyQt4, in the virtual environment itself, e. g. here ;

Both recommendations are cumbersome and do not look like smart options for development.

Is there a solution that would allow to run Spyder with required Python version automatically after activating the required virtual environment?

解决方案

There is an option to create virtual environments in Anaconda with required Python version.

conda create -n myenv python=3.4

To activate it :

source activate myenv # (in l

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值