r/IPython • • Jun 21 '20
Why do I get "command not found" with "pip install import-ipynb"?
Hi,
I'm trying to do pip install import-ipynb in my terminal on my MacOS Sierra v10.12.6. However, I keep on getting command not found. What is wrong? I have Python 3.8, and I think all MacOS devices have Python 2.7 installed by default.
4
Upvotes
1
u/LewisgMorris Jun 21 '20 edited Jun 21 '20
Do you have pip installed ? I'm not a Mac user but it appears you do not have pip. If you want to import a ipynb file you could export it to a .py file (I think its file > export> executable file) and then import like normal.
Or copy and paste the file into a text editor and save as .py
1
u/LewisgMorris Jun 21 '20
Just a thought, you could bypass pip entirely and just download the package from github.
I think its the same on linux and mac so you could do this (if you have git)
git clone "https://github.com/axil/import-ipynb"cd import-ipynbpython setup.py installOR
download from github, unzip, navigate to the folder in your terminal & then run
python setup.py install0
u/[deleted] Jun 21 '20
[deleted] — view deleted comment