So after installing VSCode and Python 3.7.4 (64 bit) I really struggle to make the "python interactive" work.
I have installed the Python extension in VScode, also jupyter and jupyter-lab but I keep getting the error "Exception: Jupyter command jupyter-notebook not found." when I try to run a cell/a line.
I am running Windows 10, using pip3
What did the trick was, that a few packages were outdated.
Firstly I had to uninstall pyzmq and install it again.
Then I ran pip3 install --upgrade nbconvert.
I also did pip install --upgrade pywin32==224 but I think the upper two solved the problem.
Lesson learned: Never use conda/pip together!
I believe you have to install anaconda first and start your notebook from an anaconda terminal.
Related
I installed the python package lifelines on my terminal. The windows terminal is my terminal of choice, with a powershell and anaconda terminal that I often used.
I tried installing the package using the provided commands in the documentation:
pip install lifelines
and
conda install -c conda-forge lifelines
Both times the installation is marked as successfull. When I run Python within the terminal I can import the lifelines package without problem. However whem I import it on a jupyter notebook it yields a ModuleNotFoundError.
The base environment I use does not contain the lifelines package when I verify its contents using the Anaconda Navigator.
The jupyter notebooks are run on Anaconda Powershell, and so are the environments and packages.
Installing on the Windows Powershell will never work. Running the conda install -c conda-forge lifelines in the Anaconda shell solved the issue.
So silly, yet so time consuming it is worth sharing.
I had a issue like this, python3 -m pip install <package_name> solved it for me. Use python -m pip install <package_name> for Python2.
I want to start working by jupyter notebook. I am using Mac. I did the following commands in terminal.
pip install jupyterlab
pip install notebook
They were installed well now in terminal I type :
jupyter notebook
And get :
-bash: jupyter: command not found
try anaconda, the best and easiest way to use jupyter notebook
Try this:
pip install --upgrade notebook
Then run
jupyter notebook
In case, you may have some python version inconsistency, always install PiPy packages with this command:
python -m pip install jupyter
Most of time, this type of installation, resolve many issues.
If your issue not solved, refer to this question, this is about your similar problem with Jupyter in Windows.
I think I broke my terminal. For some reason I am unable to use pip install to install anything on my Macbook Pro.
When I try to install such as
pip install Flask
I get
zsh: abort pip install Flask
I've tried both on pip and pip, but I get the same error on both.
Now I am unable to install any python module. I thought it was due to Bash -> zsh from Catalina update but when I changed it to Bash and tried the same, I get the same result.
Any idea how I can fix this? I am unable to do any python work due to needed modules unable to being install now
setting DYLD_LIBRARY_PATH before installing any packages with pip solved the issue for me:
export DYLD_LIBRARY_PATH=/usr/local/Cellar/openssl/1.0.2t/lib
(adjust for a valid openssl path in your system)
I found the solution in this github issue.
I am trying to install package scikit-learn from the spyder in anaconda.
But there's an error message:
The Python package manager (pip) can only be used from outside of
IPython. Please reissue the pip command in a separate terminal or
command prompt.
is there any way to install it outside of IPython of Spyder in Anaconda?
Thanks
You must use
!pip install <package>
I have spent a lot of time tying to install tensorflow for windows. I keep getting errors like "not supported."
I have tried the commands:
pip install tensorflow
and
pip install --upgrade https://storage.googleapis.com/tensorflow/windows/cpu/tensorflow-0.12.0rc0-cp35-cp35m-win_amd64.whl
I found that tensorflow works with python 3.7-3.10 so if you have a higher version of python, consider installing an older one.
It worked for me, I had python 3.11 is I installed python 3.9 and it worked.
Note that TensorFlow needs x64 Windows and that Python 3.5 and higher go with pip3 instead of pip. Still, there's a glitch with the installation script; I ran into the same problem and resolved it by using Anaconda, an alternative package manager for R and Python.
Once you've installed Anaconda, run the Anaconda prompt, create a new environment (called here tfenv), and activate it:
>conda create -n tfenv
>conda activate tfenv
Then, you can install TensorFlow
>conda install tensorflow
to install tensor flow you need to do this:
pip install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-0.12.0-py3-none-any.whl
it seems to work, and has a different link to yours. I think your link may be for a different system.