2014-05-17 4 views
6

저는 몇 시간 동안이 문제를 해결하기 위해 시간을 벌었습니다.64 비트 시스템에서 32 비트 Python의 virtualenv를 사용하는 방법은 무엇입니까?

세 번째 오류는 DLL을 복사하는 반면, 기본적으로 이미 있습니다. 내가 this을 읽고주의 할 봤는데

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. 

, 나는 파이썬 3 다시 잠시 설치했다, 그러나 파이썬 2.7를 설치 한 후 파이썬 3를 제거했습니다. 파이썬 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. 

고마워요.

+3

스크린 샷을 찍고 이미지로 게시하는 대신 출력을 복사하여 코드 블록에 붙여 넣을 수 있습니까? 그러면 어떤 답변을 인용하는 것이 더 쉬워지고 다른 누구 에게든이 문제가있는 경우 검색 결과에 표시됩니다. – icktoofay

답변

0

--distribute은 더 이상 유지 관리되지 않는 Setuptools 포크 인 Distribute를 사용합니다. 이후 Setuptools에 합병되었습니다. 일반적으로이 옵션을 사용하지 말 것을 권장합니다. 실행 파일의 경로에 -p 옵션을 사용하여 사용할 파이썬 인터프리터를 지정할 수 있습니다. 그렇게하면 Python 3을 사용하지 않고 있는지 확인할 수 있습니다. C : \ Python27 환경에서 만드는 것처럼 보이지만 virtualenv가 2.7을 사용한다는 것을 알게 될 것이라고 확신하지는 않습니다. 위치.

+0

파이썬 3이 사라 졌는지 어떻게 알 수 있습니까? – User

+0

virtualenv를 활성화하고 파이썬 쉘을 시작한 다음 다음을 입력하십시오 : 'import sys; print (sys.version)' –