Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Python

Juan Perez
PLUS
Juan Perez
Courses Plus Student 8,944 Points

Error while installing Django. How correct it?

Im getting this error while Im trying to install django on a new environment.

How can I fix this error?

Thanks.

(RobleCapital)   RobleCapital pip install django==1.9.8 
zsh: /Users/JuanPerez/Desktop/Programing Training/python/RobleCapital/bin/pip: bad interpreter: "/Users/JuanPerez/Desktop/Programing: no such file or directory
Collecting django==1.9.8
  Using cached Django-1.9.8-py2.py3-none-any.whl
Installing collected packages: django
Exception:
Traceback (most recent call last):
  File "/Library/Python/2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/Library/Python/2.7/site-packages/pip/commands/install.py", line 317, in run
    prefix=options.prefix_path,
  File "/Library/Python/2.7/site-packages/pip/req/req_set.py", line 742, in install
    **kwargs
  File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 831, in install
    self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
  File "/Library/Python/2.7/site-packages/pip/req/req_install.py", line 1032, in move_wheel_files
    isolated=self.isolated,
  File "/Library/Python/2.7/site-packages/pip/wheel.py", line 346, in move_wheel_files
    clobber(source, lib_dir, True)
  File "/Library/Python/2.7/site-packages/pip/wheel.py", line 317, in clobber
    ensure_dir(destdir)
  File "/Library/Python/2.7/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
    os.makedirs(path)
  File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/os.py", line 157, in makedirs
    mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/Library/Python/2.7/site-packages/django'
(RobleCapital)   RobleCapital python --version
Python 3.5.1
(RobleCapital)   RobleCapital 
Juan Perez
Juan Perez
Courses Plus Student 8,944 Points

What is weird is that I was playing around with ruby and installed it and before that everything was working fine. Now is not working. Would that be the reason? is it that I cant use python and ruby on the same machine?