1

I've had some weird issues with my python install recently but I've usually been able to get it working. However I'm running into a really bizarre issue right now where pip is installing things that disappear. Trying to run through this blog post.

In the terminal:

pip install markdown 

Everything installs correctly.

python -m markdown testing.md > output.html

It pops out the following error /usr/bin/python: No module named markdown which seems bizarre, since I'm running exactly what the tutorial is telling me. Then when I write python markdown

When I go to run the command pip install again it spits out the following:

$ pip install markdown
Requirement already satisfied (use --upgrade to upgrade): markdown in /Library/Frameworks/Python.framework/Versions/3.4/lib/python3.4/site-packages

Any tips on how to troubleshoot this?

3

I think your copy of Python 3 is not using the executable name "python". Try "python3 -m markdown" and see if that works. If it does, you can symlink python to python3, or just execute python3 when tutorials ask you to run python.

3
  • !?!?!?! Well, that's bizarre. I'm checking now. – gersande Sep 11 '14 at 2:08
  • It worked. Hallelujah! – gersande Sep 11 '14 at 2:10
  • It works. how to set python as python3? – Shicheng Guo Aug 13 '19 at 0:06

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .