Skip to content
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

Error installing pexpect #7

Open
NicuckolasRitz opened this issue Jan 26, 2019 · 1 comment
Open

Error installing pexpect #7

NicuckolasRitz opened this issue Jan 26, 2019 · 1 comment

Comments

@NicuckolasRitz
Copy link

pi@PiHole:~ $ pip install pexpect
Downloading/unpacking pexpect
Downloading pexpect-4.6.0-py2.py3-none-any.whl (57kB): 57kB downloaded
Downloading/unpacking ptyprocess>=0.5 (from pexpect)
Downloading ptyprocess-0.6.0-py2.py3-none-any.whl
Installing collected packages: pexpect, ptyprocess
Compiling /tmp/pip-build-f7DTw7/pexpect/pexpect/_async.py ...
File "/tmp/pip-build-f7DTw7/pexpect/pexpect/_async.py", line 19
transport, pw = yield from asyncio.get_event_loop()
^
SyntaxError: invalid syntax

Cleaning up...
Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/pip/basecommand.py", line 122, in main
status = self.run(options, args)
File "/usr/lib/python2.7/dist-packages/pip/commands/install.py", line 295, in run
requirement_set.install(install_options, global_options, root=options.root_p ath)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 1436, in install
requirement.install(install_options, global_options, *args, **kwargs)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 672, in install
self.move_wheel_files(self.source_dir, root=root)
File "/usr/lib/python2.7/dist-packages/pip/req.py", line 902, in move_wheel_fi les
pycompile=self.pycompile,
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 214, in move_wheel_ files
clobber(source, lib_dir, True)
File "/usr/lib/python2.7/dist-packages/pip/wheel.py", line 204, in clobber
os.makedirs(destdir)
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/p expect-4.6.0.dist-info'

Storing debug log for failure in /home/pi/.pip/pip.log

@eLVee1991
Copy link
Owner

Try running the command as sudo

sudo pip install pexpect

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants