importerror : cannot import name 'secure_write' while updating python in conda evironment - python-3.x

I want to update my python version to python 3.6 , I am using conda environment therefore used the following command on the terminal :
conda install python=3.6
while installation I'm encountered with this error : importerror : cannot import name 'secure_write'
Any help???

Upgrade the jupyter client
pip install --upgrade jupyter_client
This error was reported for jupyter client at https://github.com/jupyter/notebook/issues/5014

First I did
pip uninstall jupyter_client
then
pip install jupyter_client
this helped me fix the error

This made is simple.
conda install -c conda-forge jupyterlab

Related

Having issues to import imblearn python package on Jupyter notebook on Anaconda

I wanted to install imbalanced-learn using pip install imbalanced-learn. Then I have tried import
from imblearn.ensemble import EasyEnsembleClassifier
This import gave me the following error. I did try with uninstall imbalanced-learn and re-install imbalanced-learn, but it didn't help.
ImportError: cannot import name '_joblib_parallel_args' from 'sklearn.utils.fixes' (C:\Users\Jishan\anaconda3\envs\summerprojects\lib\site-packages\sklearn\utils\fixes.py)
I also tried
pip: pip install -U imbalanced-learn
anaconda: conda install -c glemaitre imbalanced-learn
They were not helpful as well. I was using Anaconda virtual environment. I appreciate your suggestions. Thanks!
you can try this :
conda install -c conda-forge imbalanced-learn to update documentation
sudo pip3 install imblearn to install imblearn
on command prompt : pip3 install imblearn
on anaconda !pip3 install imblearn

i tried installing tensorflow using 'pip install tensorflow ' in anaconda prompt and command prompt. its showing following output

Found existing installation: wrapt 1.10.11
Cannot uninstall 'wrapt'. It is a distutils installed project and thus we cannot accurately determine which files belong to it which would lead to only a partial uninstall.
Try the below commands mentioned, it worked for me
conda update wrapt
pip install tensorflow
(1) First try to install wrapt manually using following command
pip install wrapt --upgrade --ignore-installed
make sure that you use "--ignore-installed" flag when install 'wrapt' as above mentioned command
(2) Then install tensorflow with pip
eg:
pip install tensorflow==1.14
this should work
You might want to upgrade numpy with following incase its not compatible otherwise it will throw errors.
pip install numpy --upgrade
I was getting this error while installing from conda environment. Always upgrade conda or pip before a new installation.
Following worked for me:
[Optional] If installing in conda environment, then temporarily remove the conda env:
conda remove --name myenv --all
Update all conda packages:
conda update --all
Create conda env again:
conda create -n myenv
Activate conda env:
conda activate
Install tensorflow:
pip install tensorflow

glob2 Package in Python3

I try to install glob2 package with this command in the terminal:
pip install glob2
But i received an error: 'pip: command not found'
note: my platform is Python3 & Atom
would you please help me with it?
Extending on "Sianur's comment"
Sometimes we may get confused pip is part of which python version.
In that case below command will give details of pip Version.
$ pip -V
pip 18.1 from /home/user1/anaconda3/lib/python3.6/site-packages/pip (python 3.6)
In this case, the pip is coming from python3.6 installation.
Hope this helps.

i want to install tensor flow in anaconda but it shows error :

i tried many ways to install tensor flow on my windows system with anaconda 5.0 and python 3.6
pip3 install --upgrade https://storage.googleapis.com/tensorflow/mac/cpu/tensorflow-1.0.0-py3-none-any.whl
pip3 install --ignore-installed --upgrade tensorflow
conda install -c conda-forge tensorflow
conda config --add channels conda-forge
conda install tensorflow
but it shows errorpackage missing in current channel
after it i also tried to degrade my python version from anaconda navigator after the whole process python version is same as before.
Finally , Solved my problem by reinstalling the anaconda and python 3.5. and after the re-installation i install tensor-flow by anaconda navigator and it worked for me.

pip3 not found in Tensorflow environment: "-bash: pip3: command not found"

I'm following instructions to create a Tensorflow environment for a Machine Learning course, with python 3.5, ipython and jupyter.
I created a Tenserflow environment with python 3.5 using conda create -n tensorflow python=3.5. That worked.
Then I ran conda install -c conda-forge tensorflow. That also worked.
Then I installed ipython with conda install ipython, which also worked fine.
However, when I ran pip3 install jupyter, I got error message bash: pip3: command not found.
I found a few posts about variations on pip3 problems and (within the Tensorflow environment):
When I type pip --version, it tells me I have version 8.1.2
When I try locate pip3, I get WARNING: The locate database (/var/db/locate.database) does not exist
I tried using pip-3.2 as recommended in one of the other questions' solutions (which worked for that OP), and I get the same command not found error message.
I'm using OS X 10.8.5
pip is different from pip3. So you might need to install it if it can't be found. If it is installed run this:
sudo updatedb
this will update the locate function.
if you're using conda why do you want to install it with pip anyways?
Jupyter is the new version of ipython. running conda install ipython installs ipython (now jupyter).

Resources