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.

`python setup.py install` command should error out and ask user to use `pip`

See original GitHub issue

The only way to have a working installation of widgetsnbextension is to use pip.

The usual python setup.py install does not work, since that invokes setuptools (although setup.py seems to be written at some point with a conditional import of setuptools) and the setup() function of setuptools does not handle data_files correctly.

Note that it’s not a problem for me to use pip but it’s at least unexpected that python setup.py install does not work. So either this should be fixed or detected such that an error can be raised.

CC @embray @SylvainCorlay

Issue Analytics

  • State:open
  • Created 7 years ago
  • Comments:10 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
embraycommented, Aug 29, 2017

Just don’t use ./setup.py install directly. The problem is that it does the wrong thing for legacy support reasons.

I think in the past i had a good proposal for how to fix this in setuptools, but didn’t follow through on it. The best thing to do is to install with pip though.

0reactions
malatiyyahcommented, Aug 28, 2017

do you mean I change the content of the file?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error when installing using pip - python - Stack Overflow
Launch the command prompt with 'run as administrator' rights before installing. then try the script - pip ...
Read more >
I can't install libraries - Discussions on Python.org
I'm trying to run my codes on vscode, ty for help ! Full error message : "C:\Users\josep\AppData\Local\Programs\Python\Python311>pip install ...
Read more >
Using Python's pip to Manage Your Projects' Dependencies
If pip isn't installed yet, then this command installs it in your current Python environment. If you're in an active virtual environment, then ......
Read more >
python setup.py egg_info did not run successfully. - You.com ...
You can't install it on Python 3, which is what you (or your QGIS) is running. ... in <module> File "C:\Users\ckmer\AppData\Local\Temp\pip-install-0egbz63s\ ...
Read more >
Command python setup py egg info failed with error ... - Edureka
I think you are using previous version of jupyter. Try to update your setuptools and pip first then retry. $ pip install --upgrade...
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