如何在64位机器上使用32位Python中的virtualenv?

 L鸿玖 发布于 2023-01-14 16:00
  • php
  • 我已经把这个问题搞砸了几个小时了,而且还有一段时间.

    第三个错误表示复制DLL,同时默认情况下它已存在.

    C:\Windows\system32>virtualenv django-josh
    New python executable in django-josh\Scripts\python.exe
    ERROR: The executable django-josh\Scripts\python.exe is not functioning
    ERROR: It thinks sys.prefix is u'c:\\windows\\syswow64\\django-josh' (should be u'c:\\windows\\system32\\django-josh')
    ERROR: virtualenv is not compatible with this system or executable
    Note: some Windows users have reported this error when they installed Python for "Only this user" or have multiple versions of Python installed. Copying the appropriate PythonXX.dll to the virtualenv Scripts/ directory may fix this problem.
    

    我一直在读这个并想要注意,我曾经安装了Python 3,但之后安装了Python 2.7并删除了Python 3.我想知道我的计算机上是否还有一些Python 3的痕迹,即使我找不到任何东西.

    更新:我能够使用此命令(使用选项),但我不确定这是否正确.

    C:\Windows\system32>virtualenv --distribute C:\Python27\envs\django
    New python executable in C:\Python27\envs\django\Scripts\python.exe
    Installing setuptools, pip...done.
    

    非常感谢!

    撰写答案
    今天,你开发时遇到什么问题呢?
    立即提问
    热门标签
    PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
    Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有