win10 installation below opencv

Remember is installed, but after using the conda update all packages, cv2 well spent, a lot of test methods do not work, the last only uninstall and then reinstall the opencv.

If a lot of versions of python installed on your computer, for example, I installed the python3.6, but conda following also have a python interpreter, this is pycharm default interpreter.

So do not be confused, if want to see what the system default python, python --version can be used to view, even to keep a conda, the rest can be deleted. (Note that the path environment variable should be clear)

Download python opencv corresponding version, I was python3.6, plus x64, win platform

https://www.lfd.uci.edu/~gohlke/pythonlibs/#opencv

Download the good, direct start cmd 

Absolute path pip install this whl, you can

If numpy of error, stating that this version of opencv relatively new, it needs to be updated version numpy

So conda install numpy

The program is running,

The sudden appearance of a shortage of hard disk prompt. A look Anaconda3 \ pkgs below the space occupied by the G 7, loaded into the shared memory disk D, G 10 is released, suddenly not enough. .

 

Conda clean -p then uses the packet buffer are deleted useless, conda clean -a little steeper

Of course, you can also delete the whole bar pkgs.

Guess you like

Origin www.cnblogs.com/marszhw/p/10994057.html