New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No module named pip #254

Closed
mohamed-soubhi opened this Issue Jul 20, 2015 · 2 comments

Comments

Projects
None yet
2 participants
@mohamed-soubhi

mohamed-soubhi commented Jul 20, 2015

==> Installing Python Package Manager ...
/tmp/tmpfKws_3/pip.zip/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
/tmp/tmpfKws_3/pip.zip/pip/vendor/requests/packages/urllib3/util/ssl.py:90: InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning.
Exception:
Traceback (most recent call last):
File "/tmp/tmpfKws_3/pip.zip/pip/basecommand.py", line 223, in main
status = self.run(options, args)
File "/tmp/tmpfKws_3/pip.zip/pip/commands/install.py", line 299, in run
root=options.root_path,
File "/tmp/tmpfKws_3/pip.zip/pip/req/req_set.py", line 646, in install
**kwargs
File "/tmp/tmpfKws_3/pip.zip/pip/req/req_install.py", line 813, in install
self.move_wheel_files(self.source_dir, root=root)
File "/tmp/tmpfKws_3/pip.zip/pip/req/req_install.py", line 1008, in move_wheel_files
isolated=self.isolated,
File "/tmp/tmpfKws_3/pip.zip/pip/wheel.py", line 339, in move_wheel_files
clobber(source, lib_dir, True)
File "/tmp/tmpfKws_3/pip.zip/pip/wheel.py", line 310, in clobber
ensure_dir(destdir)
File "/tmp/tmpfKws_3/pip.zip/pip/utils/init.py", line 70, in ensure_dir
os.makedirs(path)
File "/usr/lib/python2.7/os.py", line 157, in makedirs
mkdir(name, mode)
OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pip-7.1.0.dist-info'

[FAILURE]

==> Installing PlatformIO and dependencies ...
/usr/bin/python: No module named pip

[FAILURE]
The installation process has been FAILED!


this error appeared in my both Ubuntu PC and raspian system

@ivankravets ivankravets added this to the 2.2.2 milestone Jul 21, 2015

@ivankravets

This comment has been minimized.

Member

ivankravets commented Jul 21, 2015

OSError: [Errno 13] Permission denied: '/usr/local/lib/python2.7/dist-packages/pip-7.1.0.dist-info'

You don't have permission to install python packages. Please look into http://docs.platformio.org/en/latest/installation.html#super-quick-mac-linux

Have you tried to use sudo?

sudo python -c "$(curl -fsSL https://raw.githubusercontent.com/platformio/platformio/master/scripts/get-platformio.py)"

P.S: I will add to installer script more information when permission is denied. Thanks.

@ivankravets ivankravets changed the title from No module named pip to OSError: [Errno 13] Permission denied Jul 21, 2015

@ivankravets

This comment has been minimized.

Member

ivankravets commented Jul 21, 2015

Resolved in b79a79d

@ivankravets ivankravets changed the title from OSError: [Errno 13] Permission denied to No module named pip Jul 21, 2015

ivankravets added a commit that referenced this issue Jul 30, 2015

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment