पीआईपी वैश्विक स्थापित संकुल पहचानता है ..? :-(पीआईपी - आवश्यकता पहले ही संतुष्ट है?
मैं preactivate हुक virtualenvwrapper का उपयोग किया है PYTHONPATH साफ करने के लिए,
export PYTHONPATH=""
तो गूंज $ PYTHONPATH रिक्त स्ट्रिंग देता है, लेकिन यह मदद नहीं की।
क्या गलत है?
[email protected]:~$ mkvirtualenv test
New python executable in test/bin/python
Installing setuptools............done.
Installing pip...............done.
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/predeactivate
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/postdeactivate
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/preactivate
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/postactivate
virtualenvwrapper.user_scripts creating /home/bentzy/.virtualenvs/test/bin/get_env_details
(test)[email protected]:~$ which pip
/home/bentzy/.virtualenvs/test/bin/pip
(test)[email protected]:~$ sudo pip install simplejson
Requirement already satisfied (use --upgrade to upgrade): simplejson in /usr/lib /python2.7/dist-packages
Cleaning up...
(test)[email protected]:~$ echo $PYTHONPATH
(test)[email protected]:~$ pip --version
pip 1.2.1 from /home/bentzy/.virtualenvs/test/lib/python2.7/site-packages/pip-1.2.1-py2.7.egg (python 2.7)
मैं virtualenvwrapper उपयोग नहीं किया है, लेकिन virtualenv साथ मैं --no-साइट-संकुल विकल्प का उपयोग करें। क्या mkvirtualenv इस विकल्प को पास कर सकता है? –
हां - लेकिन टीआईएस मुद्दा नहीं है। Virtualenv 1.7 के रूप में, --no-site-packages डिफ़ॉल्ट हो गया है और इसे बहिष्कृत किया गया है। मैं 1.8.2 का उपयोग कर रहा हूँ। वैसे भी - मैंने यह भी कोशिश की है और अभी भी अपेक्षित काम नहीं किया है ... – bentzy
'sys.path' प्रिंट करने का प्रयास करें और देखें कि वहां क्या है। – Aman