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.

Cannot install without matplotlib

See original GitHub issue

On a fresh virtual environment,

pip install -e .

fails with

Obtaining file:///home/colin/projects/arviz
    Complete output from command python setup.py egg_info:
    Traceback (most recent call last):
      File "<string>", line 1, in <module>
      File "/home/colin/projects/arviz/setup.py", line 7, in <module>
        from matplotlib import get_configdir
    ModuleNotFoundError: No module named 'matplotlib'
    
    ----------------------------------------
Command "python setup.py egg_info" failed with error code 1 in /home/colin/projects/arviz/

I wonder if we can do some matplotlib magic after installing the requirements, or maybe just on import?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:1
  • Comments:6 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
aloctavodiacommented, May 22, 2018

I solved and then I ruined!

from matplotlib import get_configdir should be inside the function copy_styles():

1reaction
ahartikainencommented, May 22, 2018

On osx installation fails. Is this failing silently on linux? This would explain the problem.

with open(REQUIREMENTS_FILE) as buff:
    install_reqs = buff.read.splitlines()

it should be (see missing () after read

with open(REQUIREMENTS_FILE) as buff:
    install_reqs = buff.read().splitlines()
Read more comments on GitHub >

github_iconTop Results From Across the Web

Can't install Matplotlib in python 3.7 - Stack Overflow
I have python 3.7 64 bit version on my Windows 10 64-bit machine. I installed numpy,pandas,scipy with no problem but matplotlib is giving ......
Read more >
I am not able to install Matplotlib. What should I do? - Quora
Go to command prompt and then type py and press enter, then type 'pip install Numpy' if Numpy' is already installed by you,...
Read more >
Installing Matplotlib - Problem Solving with Python
The simplest way to install Matplotlib is to download and install the Anaconda distribution of Python. The Anaconda distribution of Python comes with...
Read more >
How to Fix: No module named matplotlib - Statology
Step 1: pip install matplotlib. Since matplotlib doesn't come installed automatically with Python, you'll need to install it yourself. The ...
Read more >
Installation — Matplotlib 2.0.2 documentation
matplotlib compiled fine, but nothing shows up when I use it¶. The first thing to try is a clean install and see if...
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