简体   繁体   English

VirtualEnv 系统找不到指定的路径:'...Python3.6\\\\DLL'

[英]VirtualEnv the System cannot find the path specified : '...Python3.6\\DLL'

I am trying to downgrade python for tensorflow in a virtual env, the only way I found how to do this was to download Python3.6 and use the command我正在尝试在虚拟环境中为 tensorflow 降级 python,我发现如何做到这一点的唯一方法是下载 Python3.6 并使用命令

virtualenv -m TempEnv C:\Dev\Projects -p C:\Dev\Projects\Python3.6\python.exe

but I am getting the error:但我收到错误:

FileNotFoundError: [WinError 3] The system cannot find the path specified: 'C:\\Dev\\Projects\\Python3.6\\DLLs'

Why is it looking for a DLL folder?为什么要寻找 DLL 文件夹? this was not in the python 3.6 embedded download这不在 python 3.6 嵌入式下载中

Is there a better way to do this through virtual environments?有没有更好的方法通过虚拟环境来做到这一点? I dont want to screw up my global python installation and libraries by downgrading everything我不想通过降级所有内容来搞砸我的全局 python 安装和库

Thanks,谢谢,

Had to download the windows installer, doesn't work with embedded version必须下载 Windows 安装程序,不适用于嵌入式版本

Then the command line is simply virtualenv C:\\Dev\\Projects\\venv -p C:\\Dev\\Projects\\Python3.6\\python.exe然后命令行只是virtualenv C:\\Dev\\Projects\\venv -p C:\\Dev\\Projects\\Python3.6\\python.exe

In my case using Windows and Python 3.10 embedded, I've just added the missing folder DLLs (letting it empty) in the respective Python directory and it works.在我使用 Windows 和嵌入式 Python 3.10 的情况下,我刚刚在相应的 Python 目录中添加了缺少的文件夹 DLL(让它为空)并且它可以工作。

In your case you would have to build the new empty folder C:\\Dev\\Projects\\Python3.6\\DLLs and it should work在您的情况下,您必须构建新的空文件夹C:\\Dev\\Projects\\Python3.6\\DLLs并且它应该可以工作

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM