相关疑难解决方法(0)

使用与virtualenv不同的Python版本

我有一个当前使用python 2.5.4运行的Debian系统.我得到了virtualenv正确安装,一切正常.我是否有可能使用不同版本的Python的virtualenv?

我编译了Python 2.6.2,并希望将它与一些virtualenv一起使用.是否足以覆盖二进制文件?或者我是否必须更改库中的某些内容?

python virtualenv virtualenvwrapper

997
推荐指数
22
解决办法
67万
查看次数

如何在Visual Studio Code中更改python版本?

有一个我无法解决的问题。我已经设置好了:

1.用户设置

{
"atomKeymap.promptV3Features": true,
"editor.multiCursorModifier": "ctrlCmd",
"editor.formatOnPaste": true,
"python.pythonPath": "python3",
"command": "python3",
Run Code Online (Sandbox Code Playgroud)

}

2.工作区设置

{
"python.pythonPath": "${workspaceFolder}/env/bin/python3.6",
"git.ignoreLimitWarning": true
Run Code Online (Sandbox Code Playgroud)

}

3.tasks.jason文件

{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "python3",
"isShellCommand": true,
"args": ["${file}"],
"showOutput": "always"
Run Code Online (Sandbox Code Playgroud)

}

如果我使用调试控制台并且版本和路径正确,请 调试

但是无论我做什么,我的输出始终默认为“ python2.7”。我该如何改善? 输出

python visual-studio-code

12
推荐指数
7
解决办法
2万
查看次数