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.

Missing dependencies when installing from pip ("requests")

See original GitHub issue

Hello,

when i tried to install plotly using pip install plotly, I got:

Downloading/unpacking plotly
  Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB): 1  Downloading plotly-1.0.10.tar.gz (60kB):    Downloading plotly-1.0.10.tar.gz (60kB): 60kB downloaded
  Running setup.py (path:/home/dan/prac/.virtualenvs/work/build/plotly/setup.py) egg_info for package plotly
    Traceback (most recent call last):
      File "<string>", line 17, in <module>
      File "/home/dan/prac/.virtualenvs/work/build/plotly/setup.py", line 3, in <module>
        exec (open('plotly/version.py').read())
      File "<string>", line 3, in <module>
    ImportError: No module named 'requests'
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):

  File "<string>", line 17, in <module>

  File "/home/dan/prac/.virtualenvs/work/build/plotly/setup.py", line 3, in <module>

    exec (open('plotly/version.py').read())

  File "<string>", line 3, in <module>

ImportError: No module named 'requests'

----------------------------------------
Cleaning up...
Command python setup.py egg_info failed with error code 1 in /home/dan/prac/.virtualenvs/work/build/plotly
Storing debug log for failure in /home/dan/.pip/pip.log

after installing “requests” using pip install requests, everything works fine.

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:10 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
moritzmcgarriecommented, Jul 10, 2015

Solved my own problem: So even though I had python --version Python 2.7.10 , when I type pop install <some-package> it must be installing for 3.4…

Using (https://docs.python.org/2/installing/): python2 -m pip install SomePackage # default Python 2 python2.7 -m pip install SomePackage # specifically Python 2.7 python3 -m pip install SomePackage # default Python 3 python3.4 -m pip install SomePackage # specifically Python 3.4

I can change plotly specifically for version 2.7 and now works fine.

0reactions
mithunsureshqacommented, Feb 21, 2019

i have python 2.7.14 & plotly : Version: 2.2.1 on my mac. still running into error import plotly ImportError: No module named plotly any help is apprecaited.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Python's requests "Missing dependencies for SOCKS support ...
This means that requests is using socks as a proxy and that socks is not installed. Just run pip install pysocks.
Read more >
How to PIP Install Requests Python Package - ActiveState
Pip Install Requests as a Dependency​​ Dependency resolution is at the core of the ActiveState Platform. When you create a project and start ......
Read more >
`http: error: InvalidSchema: Missing dependencies for SOCKS ...
It's possible that the apt-installed version of HTTPie does not have access to the additional pip-installed packages, for some reason.
Read more >
PyCharm - Install, uninstall, and upgrade packages - JetBrains
PyCharm provides methods for installing, uninstalling, and upgrading Python packages for a particular Python interpreter. It means that each project has its ...
Read more >
How to use pip (Install, update, uninstall packages) - nkmk note
Install pip pip and pip2, pip3 Details of installed package:... ... Uninstall a package: pip uninstall; Check for dependencies: pip check.
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