
Install the generated wheel file in the dist/ folder with pip install dist/wheelname.whl.

Run the command python setup.py bdistwheel -build-typeDebug. Install the packages scikit-build and numpy via pip. Then create the new empty environment with the Python version you want and clone the original environment: conda create -name original_env_name python=3. In order to build opencv-python in an unoptimized debug build, you need to side-step the normal process a bit. If you want to update the Conda version of your previous environment you can also do the following (more complicated than it should be because you cannot rename environments in Conda):Ĭreate a temporary new location for your current environment: conda create -name temporary_env_name -clone original_env_nameĭelete the original env (so that the new env can have that name): conda deactivateĬonda remove -name original_env_name -all # Or its alias: `conda env remove -name original_env_name` Also, why do you want 3.6? Move forward with the world ) Sh install.sh # Or whatever you usually do to install dependenciesĭoing conda install python=3.8 doesn't work for me. Then create a new environment with a new Python version and rerun your install.sh script with the Conda/pip installs (or the YAML file or whatever you use to keep your requirements): conda remove -name original_name -allĬonda create -name original_name python=3.8

The only solution that works was creating a new Conda environment with the name you want (you will, unfortunately, delete the old one to keep the name).
