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.

OSX: "ImportError: No module named pathlib"

See original GitHub issue

Hi, I’m trying to install and I get this error:

$ fuck
Traceback (most recent call last):
  File "/usr/local/bin/thefuck", line 7, in <module>
    from thefuck.main import main
  File "/Library/Python/2.7/site-packages/thefuck/main.py", line 2, in <module>
    from pathlib import Path
ImportError: No module named pathlib

I tried updating setup by following the instructions in #218. Running OSX 10.10.4, Python 2.7.6, and pip 7.1.0. Any ideas?

Issue Analytics

  • State:closed
  • Created 8 years ago
  • Reactions:2
  • Comments:10

github_iconTop GitHub Comments

40reactions
nd-roycommented, Jul 14, 2015

I tried

sudo pip install pathlib

and it works for me 😃

12reactions
jonathan-villemotcommented, Jul 14, 2015

👍 Worked for me too.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ImportError: No module named pathlib - python 2.7
ImportError: No module named pathlib · normally, this means that the python binary you are using isn't the same as the one that...
Read more >
importerror: no module named pathlib ( Solved )
Importerror: no module named pathlib error occurs especially in the lower version of the python (< 3.4 ) because of incompatibility pathlib module....
Read more >
OS X pathlib ImportError: No module named pathlib - Reddit
I created and activated virtualenv named venv using Anaconda python 3.6.5 then pip installed pathlib into venv.
Read more >
ImportError: No module named pathlib – iTecNote
I have the following when I run pip list – I am on 2.7 over mac os: ➜ python --version Python 2.7.10 ➜...
Read more >
Trouble creating a new project - Troubleshooting and Support
... in <module> import pathlib ImportError: No module named pathlib. In case it matters, I am on an M1 mac using the zsh...
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