Olá pessoal,
para criar o environment, eu tenho que utilizar:
sudo virtualenv envi-test
se eu não utilizar sudo aparece o seguinte erro:
IOError: [Errno 13] Permission denied: '/usr/lib/python2.7/site-packages/django_cms-2.2-py2.7.egg-info/top_level.txt
Ao tentar instalar o django através do pip, sem utilizar sudo, deparo-me com o seguinte erro:
Downloading/unpacking django==1.3.1
Exception:
Traceback (most recent call last):
File "/home/juliano/Documentos/Python/envi-test/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/basecommand.py", line 104, in main
status = self.run(options, args)
File "/home/juliano/Documentos/Python/envi-test/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/commands/install.py", line 245, in run
requirement_set.prepare_files(finder, force_root_egg_info=self.bundle, bundle=self.bundle)
File "/home/juliano/Documentos/Python/envi-test/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 971, in prepare_files
location = req_to_install.build_location(self.build_dir, not self.is_download)
File "/home/juliano/Documentos/Python/envi-test/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 153, in build_location
_make_build_dir(build_dir)
File "/home/juliano/Documentos/Python/envi-test/lib/python2.7/site-packages/pip-1.1-py2.7.egg/pip/req.py", line 1225, in _make_build_dir
os.makedirs(build_dir)
File "/home/juliano/Documentos/Python/envi-test/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/home/juliano/Documentos/Python/envi-test/build'
Quando tento instalar o django, utilizando sudo, acontece o seguinte:
sudo pip install django==1.3.1
Requirement already satisfied (use --upgrade to upgrade): django==1.3.1 in /usr/lib/python2.7/site-packages
Cleaning up...
e quando tento importar o django no interpretador python
python
>>>import django
ImportError: No module named django
A saída do comando "which python" é:
~/Documentos/Python/envi-test/bin/python
A saída do comando "which python2.7" é:
~/Documentos/Python/envi-test/bin/python2.7
Conto com a ajuda de vocês.