question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

pip3 install error

See original GitHub issue
$ git clone https://github.com/fyookball/electrum
$ cd electrum
$ pip3 install .
...
  Running setup.py install for Electron-Cash ... error
    Complete output from command /usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-x5v44czd-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-fp8gqsul-record/install-record.txt --single-version-externally-managed --compile --user --prefix=:
    usage: -c [--root= dir] [--prefix= prefix]
    -c: error: argument --prefix=: expected one argument
    
    ----------------------------------------
Command "/usr/bin/python3 -u -c "import setuptools, tokenize;__file__='/tmp/pip-x5v44czd-build/setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record /tmp/pip-fp8gqsul-record/install-record.txt --single-version-externally-managed --compile --user --prefix=" failed with error code 2 in /tmp/pip-x5v44czd-build/

Why? The same procedure works well for electrum, electrum-ltc, electrum-dash… Morover they can use better pip3 install .[full] as well.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:13

github_iconTop GitHub Comments

1reaction
ntninjacommented, Jun 19, 2018

@ser: Not everybody uses Ubuntu and not everybody uses the most recent version of everything.

@all: I looked at this and there where two issues, acutally:

  • The value of --prefix was empty, causing an argument parsing error – I fixed this by defaulting an empty value to / (This is what caused to installation error, but it only surfaced due to Debian patches afaik.)
  • --user was ignored, if the called user somehow had access to /share or / (the resulting file paths) then a system-wide installation would have been attempted anyways – this is fixed by never considering a system-wise installation if --user is received

You can review the changes in #745. Please test that version @ser and report back whether is works for you.

0reactions
sercommented, Jun 20, 2018

@alexander255 Thanks I can confirm it fixes the issue and pip3 install . works 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python3 pip3 install broken on Ubuntu
I installed python3 and pip3 successfully on my Ubuntu16.04, but pip3 install is broken. How can I fix this problem? The error information ......
Read more >
pip giving error when trying to install packages Python 3.10
This error is given by Windows, saying that pip is not found. It happened because Python isn't in your shell path, If you...
Read more >
How To Fix PIP Install Not Working? - TechNewsToday
The most common reasons for issues with PIP installations is either that an incorrect PIP path is added to the PATH system variable,...
Read more >
How to install modules with PIP (and fix it when it fails) - Medium
Copy the code from get-pip.py or save the file from the link. Then simply run the file with python. This should install pip...
Read more >
Pip Command Not Found on Windows: A Guide | Built In
A “pip: command not found” error occurs when you fail to properly install the package installer for Python (pip) needed to run Python...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found