On Tue, Apr 15, 2014 at 09:07:05PM -0700, Michael wrote: > after creating a new virtualenv and installing pyramid via easy_install, I > simply call `pcreate` and I get this error: > > pkg_resources.DistributionNotFound: pyramid==1.5a2 > > any ideas why? Python 2.7.3 Log follows: > > > [michael@varga (Tue Apr 15 23:47:39) ~/src/py]% virtualenv test_env > [michael@varga (Tue Apr 15 23:47:52) ~/src/py]% cd test_env > [michael@varga (Tue Apr 15 23:47:55) ~/src/py/test_env]% source bin/activate > (test_env)[michael@varga (Tue Apr 15 23:48:25) ~/src/py/test_env]% > easy_install pyramid ... > Best match: pyramid 1.5 ... > Installing pcreate script to /Users/michael/src/py/test_env/bin ... > (test_env)[michael@varga (Tue Apr 15 23:48:43) ~/src/py/test_env]% pcreate > Traceback (most recent call last): > File "/usr/local/bin/pcreate", line 5, in <module>
Look closely here: you're running /usr/local/bin/pcreate instead of
/Users/michael/src/py/test_env/bin/pcreate.
Why? I'd've assumed that sourcing the activate script would put
/Users/michael/src/py/test_env/bin/ in front of your $PATH.
Can you try 'echo $PATH'?
Can you try 'hash pcreate' to see if bash had the full location of it
cached from before (but I always thought changing $PATH invalidates the
bash command hash table).
Marius Gedminas
--
Doing linear scans over an associative array is like trying to club someone to
death with a loaded Uzi.
-- Larry Wall
signature.asc
Description: Digital signature
