Pinax virtualenv를 구축하려고합니다. Precise Penguin에서는 0.7을 얻었습니다.
jonathan@ubuntu:~/Downloads/Pinax-0.7-bundle/scripts$ ./pinax-boot.py ~/virtual
New python executable in /home/jonathan/virtual/bin/python
Traceback (most recent call last):
File "/home/jonathan/virtual/lib/python2.7/site.py", line 67, in <module>
import os
File "/home/jonathan/virtual/lib/python2.7/os.py", line 49, in <module>
import posixpath as path
File "/home/jonathan/virtual/lib/python2.7/posixpath.py", line 17, in <module>
import warnings
ImportError: No module named warnings
ERROR: The executable /home/jonathan/virtual/bin/python is not functioning
ERROR: It thinks sys.prefix is '/home/jonathan/Downloads/Pinax-0.7-bundle/scripts' (should be '/home/jonathan/virtual')
ERROR: virtualenv is not compatible with this system or executable
- 편집하다 -
0.7.3에는 비슷해 보이지만 다른 오류가 있습니다.
New python executable in /home/jonathan/v/bin/python
Traceback (most recent call last):
File "/home/jonathan/v/lib/python2.7/site.py", line 67, in <module>
import os
File "/home/jonathan/v/lib/python2.7/os.py", line 398, in <module>
import UserDict
File "/home/jonathan/v/lib/python2.7/UserDict.py", line 83, in <module>
import _abcoll
File "/home/jonathan/v/lib/python2.7/_abcoll.py", line 11, in <module>
from abc import ABCMeta, abstractmethod
File "/home/jonathan/v/lib/python2.7/abc.py", line 8, in <module>
from _weakrefset import WeakSet
ImportError: No module named _weakrefset
ERROR: The executable /home/jonathan/v/bin/python is not functioning
ERROR: It thinks sys.prefix is '/home/jonathan/Pinax-0.7.3-bundle/scripts' (should be '/home/jonathan/v')
ERROR: virtualenv is not compatible with this system or executable
- 편집하다 -
가상 환경을 어떻게 만들어야 합니까? 0.7과 비교하여 0.9a2에서는 어떻게 해야 합니까? (0.9a2와 함께 제공되는 pinax-boot.py 스크립트는 보이지 않습니다.)