Tôi đang chạy tán 64 bit Phiên bản: 1.0.3.1262 trên mac Mountain Lion. Tôi đã cài đặt virtualenv sử dụng easy_install. Nhưng trong khi tôi đang cố gắng để thực hiện lệnh:venv Python sử dụng không chính xác sys.prefix
virtualenv venv --distribute
Nó cho thấy các lỗi sau:
Using base prefix '/Applications/Canopy.app/appdata/canopy-1.0.3.1262.macosx-x86_64/Canopy.app/Contents'
New python executable in venv/bin/python
dyld: Library not loaded: @rpath/Python
Referenced from: /Users/xxx/Desktop/untitled folder 2/venv/bin/python
Reason: image not found
ERROR: The executable venv/bin/python is not functioning
ERROR: It thinks sys.prefix is u'/Users/xxx/Desktop/untitled folder 2' (should be u'/Users/xxx/Desktop/untitled folder 2/venv')
ERROR: virtualenv is not compatible with this system or executable
Có bất kỳ ai có vấn đề tương tự và giải quyết nó? Cảm ơn bạn trước cho lời khuyên có giá trị.
Tôi đã thử mã này, nhưng tôi đã gặp phải một lỗi khác. –
@vessilli lỗi là gì? – Ben
Tôi đã khắc phục sự cố. Bạn cũng cần xác định đường dẫn của 'venv'. –