I'm trying to install django by acessing the directory that contains setup.py using
cd [Path to Django] and then python setup.py install. But the following is shown on terminal:
running install
Checking .pth file support in /usr/local/lib/python3.4/dist-packages/
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python3.4/dist-packages>/test-easy-install-5264.pth'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/usr/local/lib/python3.4/dist-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://pythonhosted.org/setuptools/easy_install.html
Please make the appropriate changes for your system and try again.
I am new to using Ubuntu and Python, so i am a little lost. Can someone help?
I am using Ubuntu 14.04.
Related
I need to install https://pypi.python.org/pypi/PasteScript on a VM without sudo access (this one, if relevant). I've downloaded it but when I run python setup.py install I get:
running install Checking .pth file support in
/usr/local/lib/python2.7/dist-packages/ error: can't create or remove
files in install directory
The following error occurred while trying to add or remove files in
the installation directory:
[Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/test-easy-install-1621.pth'
The installation directory you specified (via --install-dir, --prefix,
or the distutils default setting) was:
/usr/local/lib/python2.7/dist-packages/
Perhaps your account does not have write access to this directory? If
the installation directory is a system-owned directory, you may need
to sign in as the administrator or "root" account.
One alternative suggestion I found was to use pip, but I can't install pip without sudo.
PS: There are many similar questions, but none (that I can find!
What about:
python setup.py install --user
As stated in the doc, it should work as you expect: https://docs.python.org/2/install/#alternate-installation-the-user-scheme
I've downloaded python 3.6.1 and I'm trying to use terminal to setup beautifulsoup4 but it keeps trying to install on python 2.7. Any help?
Jakes-iMac:beautifulsoup4-4.5.3 Jake$ cd /Users/Jake/Downloads/beautifulsoup4-4.5.3
Jakes-iMac:beautifulsoup4-4.5.3 Jake$ python setup.py install
running install
Checking .pth file support in /Library/Python/2.7/site-packages/
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-18954.pth'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/Library/Python/2.7/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://pythonhosted.org/setuptools/easy_install.html
Please make the appropriate changes for your system and try again
Running the "python" command in your terminal will by default run Python 2 on many systems, even after you have installed Python 3. Try using the "python3" command instead.
try this:
sudo python setup.py install
I am trying to install BeautifulSoup on my macOS. While installing i m getting below.
And also I tried with python setup.py install, but getting same error
Please help me to resolve this
bash-3.2$ easy_install /Users/SJV/Downloads/beautifulsoup4-4.4.1/beautifulsoup4.egg-info
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-620.pth'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/Library/Python/2.7/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://pythonhosted.org/setuptools/easy_install.html
Please make the appropriate changes for your system and try again.
Are you using root? Try:
sudo pip install beautifulsoup4 # will ask your sudo password
Or login as root before run pip install beautifulsoup4.
Also, install it in virtualenv or this way can without root permission(if you don't have root permission).
I was trying to install cvxopt to my OSX system. But It didn't work.
I just followed the instruction of the standard installation on: http://cvxopt.org/install/#standard-installation.
The response from the terminal is as follows:
running install
Checking .pth file support in /Library/Python/2.7/site-packages/
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-527.pth'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/Library/Python/2.7/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://pythonhosted.org/setuptools/easy_install.html
Please make the appropriate changes for your system and try again.
Anyone could help me?
Thank you very much~
You are trying to install the package to a system owned folder location. You can overcome this by running sudo python setup.py installm but you will end up with a mess of installed libraries. Rather create a virtual environment in a location that your user owns. This way you keep your main python install clean and can chop and change versions as you need.
For more information see
I want to install NLTK(natural language toolkit) on my mac, but when I used
sudo curl https://bootstrap.pypa.io/ez_setup.py -o - | python
on my terminal, after I enter the password; the terminal says
error: can't create or remove files in install directory
The following error occurred while trying to add or remove files in the
installation directory:
[Errno 13] Permission denied: '/Library/Python/2.7/site-packages/test-easy-install-2365.pth'
The installation directory you specified (via --install-dir, --prefix, or
the distutils default setting) was:
/Library/Python/2.7/site-packages/
Perhaps your account does not have write access to this directory? If the
installation directory is a system-owned directory, you may need to sign in
as the administrator or "root" account. If you do not have administrative
access to this machine, you may wish to choose a different installation
directory, preferably one that is listed in your PYTHONPATH environment
variable.
For information on other options, you may wish to consult the
documentation at:
https://pythonhosted.org/setuptools/easy_install.html
Please make the appropriate changes for your system and try again.
Something went wrong during the installation.
See the error message above.
Could anyone please tell me how to fix it, I really need this toolkit to finish my work.
Thanks
You need a second sudo, you need to also run python with sudo python
sudo curl https://bootstrap.pypa.io/ez_setup.py -o - | sudo python