The following packages will be DOWNGRADED:Īnaconda 2019.10-p圓7_0 -> custom-p圓7_1įrom the above information, we found two problems: one is to report that my environment is inconsistent the other is that the version of the package to be installed is numpy-base-1.16.5 | p圓7hc3f5095. The following NEW packages will be INSTALLED: The following packages will be downloaded: defaults/noarch::pytest-doctestplus=0.4.0=py_0 The following packages are causing the inconsistency: The environment is inconsistent, please check the package plan carefully (base) C:\Users\Christine Yang>conda install numpyĬollecting package metadata (current_repodata.json): done When running pip in anaconda prompt, because it is already in the basic environment of Anaconda by default, the installation and uninstallation of pip is also aimed at packages in the directory of anaconda.įor this reason, I tried the command of conda install again to see if the two commands search packages in different ways and from different sources. The main explanation is that pip allows you to install python packages in any environment, and conda allows you to install any language package in conda environment.īut that doesn't explain what happened to me this time. It also made me think about the difference between pip and conda commands To ensure the correct installation location, show again: (base) C:\Users\Christine Yang>pip show numpyįinally, refresh the environment in pycharm and run the relevant code successfully!! (excitement) (base) C:\Users\Christine Yang>pip install numpy Then unload and reload (base) C:\Users\Christine Yang>pip uninstall numpyĬ:\anaconda\lib\site-packages\numpy-1.16.5-p圓.7.egg-info Required-by: torchvision, tables, statsmodels, seaborn, scikit-learn, PyWavelets, pytest-doctestplus, pytest-arraydiff, patsy, pandas, numexpr, numba, mkl-random, mkl-fft, matplotlib, imageio, h5py, Bottleneck, bokeh, bkcharts, astropy Summary: NumPy is the fundamental package for array computing with Python. In the anaconda prompt window, use the pip command to uninstall and install numpy.Ĭheck out numpy first (base) C:\Users\Christine Yang>pip show numpy ![]() It is found that import is still not possible. Then, in the anaconda prompt window, enter conda uninstall numpy, uninstall numpy in the base environment, and then conda install numpy is reinstalled. After checking, it is found that there are numpy packages. In the anaconda prompt window, enter conda list (this is to check the package in the base environment). ![]() First, check where the environment corresponding to your pycharm s interpreter is and whether there is any numpy package installed in it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |