I'm trying to install steem library on Ubuntu 16.04 using VMplayer and Python 3.5
Getting following error on running pip3 install steem:
Exception:
Traceback (most recent call last):
File "/home/orion/.local/lib/python3.5/site-
packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/orion/.local/lib/python3.5/site-
packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/home/orion/.local/lib/python3.5/site-packages/pip/req/req_set.py",
line 784, in install
**kwargs
File "/home/orion/.local/lib/python3.5/site-
packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/home/orion/.local/lib/python3.5/site-
packages/pip/req/req_install.py",
line 1064, in move_wheel_files
isolated=self.isolated,
File "/home/orion/.local/lib/python3.5/site-packages/pip/wheel.py", line
345,
in move_wheel_files
clobber(source, lib_dir, True)
File "/home/orion/.local/lib/python3.5/site-packages/pip/wheel.py", line 323, in clobber
shutil.copyfile(srcfile, destfile)
File "/usr/lib/python3.5/shutil.py", line 115, in copyfile
with open(dst, 'wb') as fdst:
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-
packages/appdirs.py'
Run the pip3 install command as sudo to avoid running into any permissions issues: sudo pip3 install [PACKAGE]
Related
When trying to install jupyter on my Ubuntu 16.04 pc, I get this error:
Exception:
Traceback (most recent call last):
File "/home/moeketsi/.local/lib/python3.5/site-packages/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/home/moeketsi/.local/lib/python3.5/site-packages/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/home/moeketsi/.local/lib/python3.5/site-packages/pip/req/req_set.py", line 784, in install
**kwargs
File "/home/moeketsi/.local/lib/python3.5/site-packages/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/home/moeketsi/.local/lib/python3.5/site-packages/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/home/moeketsi/.local/lib/python3.5/site-packages/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/home/moeketsi/.local/lib/python3.5/site-packages/pip/wheel.py", line 316, in clobber
ensure_dir(destdir)
File "/home/moeketsi/.local/lib/python3.5/site-packages/pip/utils/__init__.py", line 83, in ensure_dir
os.makedirs(path)
File "/usr/lib/python3.5/os.py", line 241, in makedirs
mkdir(name, mode)
PermissionError: [Errno 13] Permission denied: '/usr/local/lib/python3.5/dist-packages/ipython_genutils-0.2.0.dist-info'
It just looks like you do not have administrator permissions in which case just add the sudo prefix.
Also be careful, you might have the wrong installation command. This looks like it is installing in the integrated Python 3.5 environment in which case if you are not careful you may break your system.
I'm trying to install EbaySDK for Mac using Python but its not working. I have tried to follow this, but doesn't seem like I can use yum or apt-get for Mac. I also tried to use PIP but apparently need BeautifulSoup4 and it fails:
followed steps:
have python & pycharm environment installed
have pip installed
tried pip install beautifulsoup4 and get below error message
when trying to import EbaySDk its not found. I really need help with this guys!
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/commands/install.py", line 342, in run
prefix=options.prefix_path,
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_set.py", line 784, in install
**kwargs
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 851, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/req/req_install.py", line 1064, in move_wheel_files
isolated=self.isolated,
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 345, in move_wheel_files
clobber(source, lib_dir, True)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/pip/wheel.py", line 316, in clobber
ensure_dir(destdir)
File "/Library/Python/2.7/site-packages/pip-9.0.1-py2.7.egg/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/beautifulsoup4-4.6.0.dist-info'
You need to execute the following:
sudo easy_install ebaysdk
This will install the correct package
I'm trying to install pip using this command:
python get-pip.py
The error it's spitting out is this - can you help? (I'm running macOS 10.12.1)
Collecting pip
Using cached pip-8.1.2-py2.py3-none-any.whl
Collecting wheel
Using cached wheel-0.29.0-py2.py3-none-any.whl
Installing collected packages: pip, wheel
Exception:
Traceback (most recent call last):
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/pip.zip/pip/basecommand.py", line 215, in main
status = self.run(options, args)
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/pip.zip/pip/commands/install.py", line 317, in run
prefix=options.prefix_path,
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/pip.zip/pip/req/req_set.py", line 742, in install
**kwargs
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/pip.zip/pip/req/req_install.py", line 831, in install
self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/pip.zip/pip/req/req_install.py", line 1032, in move_wheel_files
isolated=self.isolated,
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/pip.zip/pip/wheel.py", line 346, in move_wheel_files
clobber(source, lib_dir, True)
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/pip.zip/pip/wheel.py", line 317, in clobber
ensure_dir(destdir)
File "/var/folders/by/db2rdr7n1753qbfz0rlgk7hw0000gn/T/tmptA1AVr/pip.zip/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/pip'
To install pip you on Mac OSX you can try :
sudo easy_install pip
The "sudo" keyword is what will grant you root privileges.
You need root access. Activate your root account and try from there.
I am trying to install 'mrjob' package at Python 2.7. However when I ran 'pip2.7 install mrjob', the following error appears. Does anyone have the solution to this? Note: I have both Python 2.7 and 3.5 install at my mac.
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/boto'
Run it with elevated privileges.
sudo pip2.7 install mrjob
I am trying to install Django and have run into an error. This has been a consistent error for me, something I have not been able to figure out how to solve. I am on a mac.
Installing collected packages: Django
Exception:
Traceback (most recent call last):
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/basecommand.py", line 211, in main
status = self.run(options, args)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/commands/install.py", line 311, in run
root=options.root_path,
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_set.py", line 646, in install
**kwargs
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_install.py", line 803, in install
self.move_wheel_files(self.source_dir, root=root)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/req/req_install.py", line 998, in move_wheel_files
isolated=self.isolated,
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/wheel.py", line 339, in move_wheel_files
clobber(source, lib_dir, True)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/wheel.py", line 310, in clobber
ensure_dir(destdir)
File "/Library/Python/2.7/site-packages/pip-7.1.2-py2.7.egg/pip/utils/__init__.py", line 71, 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'
as karthikr said, you need
virtualenv project_env
cd project_env
. bin/activate
sudo pip install Django