[PYTHON] Fix setuptools missing error in anaconda

I get an error when I do pip install with Anaconda (conda env)

$ pip install --upgrade google-cloud-bigquery

Then, it becomes as follows

FileNotFoundError: [Errno 2] No such file or directory: '/Applications/anaconda/envs/data_science3.6/lib/python3.6/site-packages/setuptools-27.2.0-py3.6.egg'

There was actually no file.

When I looked it up, the following came out.

https://github.com/ContinuumIO/anaconda-issues/issues/542

Reinstalling setuptools will fix it. So I tried the following and it worked

conda install -c anaconda setuptools=27.2.0

Recommended Posts

Fix setuptools missing error in anaconda
Python 3.3 in Anaconda
Error in random.shuffle
Error in Pyinstaller
Error in TensorBoard
[python] ERROR: Python headers are missing in /usr/include/python3.X m.
Error running Jupyter Notebook in Anaconda virtual environment
R in Anaconda (in Ubuntu 14.04)
Error handling in PythonBox
zipimporter error in pyramid
Use Anaconda in pyenv environment
Multiprocessing error in Jupyter Notebook
Slice error in python (´ ; ω ; `)
Solver Problem Error in poetry
Error in ordinal number when importing Numpy in Anaconda environment of Windows