So I follow your advice and did sudo easy_install pip and sudo pip install 
virtualenvwrapper.
Then I instaled homebrew and wget as mentioned in the site. And then I hit 
the wall. 
When I tried to python setup.py install --prefix=~/.local the return was a 
error:

Before install bootstrap.
Scanning installed packages
Setuptools installation detected at 
/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python
Not patching, --root or --prefix is installing Distribute in another 
location
running install
Checking .pth file support in 
/Users/Paulo/.local/lib/python2.7/site-packages/
/usr/bin/python -E -c pass
TEST FAILED: /Users/Paulo/.local/lib/python2.7/site-packages/ does NOT 
support .pth files
error: bad install directory or PYTHONPATH

You are attempting to install a package to a directory that is not
on PYTHONPATH and which Python does not read ".pth" files from.  The
installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:

    /Users/Paulo/.local/lib/python2.7/site-packages/

and your PYTHONPATH environment variable currently contains:

    ''

Here are some of your options for correcting the problem:

* You can choose a different installation directory, i.e., one that is
  on PYTHONPATH or supports .pth files

* You can add the installation directory to the PYTHONPATH environment
  variable.  (It must then also be on PYTHONPATH whenever you run
  Python and want to use the package(s) you are installing.)

* You can set up the installation directory to support ".pth" files by
  using one of the approaches described here:

  
http://packages.python.org/distribute/easy_install.html#custom-installation-locations

Please make the appropriate changes for your system and try again.

I dont know how to fix it. The site's tutorial doesn't mention any path 
untill that point and I am very lost here.
Any help please?
Thanks in advance


Thanks for the reply.
>
> Segunda-feira, 9 de Abril de 2012 16:23:09 UTC+1, shacker escreveu:
>>
>> On Monday, April 9, 2012 5:19:28 AM UTC-7, Paulo wrote:
>>>
>>> Im new both to Python and Django and I'm afraid of messing thins up 
>>> before I even start. 
>>> Lion ships with Python 2.7.1  but I see that 2.7.2 is available in the 
>>> official site. Should I download .dmg file from the site to update to 
>>> version 2.7.2? 
>>>
>>
>> I personally wouldn't bother messing with the default python for such a 
>> minor update on your local dev machine. Your steps should be:
>>
>> sudo easy_install pip
>> sudo pip install virtualenvwrapper
>>   [Follow its post-setup instructions, then]
>> mkvirtualenv yoursite
>> workon yoursite
>> pip install django
>>
>>
>>

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/django-users/-/Zd4YWkTYl3MJ.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.

Reply via email to