![]() (my_awesome_project) C:\Users\guido> python -m pipĬ:\Users\guido\Miniconda3\envs\my_awesome_project\python.exe -m pip Īs you can see, the output of pip shows that it is running using the python.exe from the selected environment folder. I double-checked, and indeed on my windows system (not on my linux system) I can reproduce it as follows: # Display the location of pip Unfortunately, it is the pressing of Ctrl-C to abort the running conda search command that seems to mess up the internal state of conda, at least on windows machines While I actually wanted to search on conda-forge, so I quickly press Ctrl-C, modify my command to conda search -c conda-forge dvcĪnd get to see what is the latest version of DVC on conda-forge. For example, I originally typed: conda search dvc When working, it happens every now and then that I type a command that I did not want to type, I might have forgotten to add some arguments. On my windows machine, over time I saw that my base conda environment got polluted with all kinds of pip packages, and packages that were installed with pip were sometimes not available in my active environment, even though I just had installed them WHILE the prompt indicated I was working in this project environment.Īs it turns out, the conda environment in the windows command prompt appears to be a bit of an illusion: They keyword in that assumption is should. Fortunately, using pip within a conda environment this should not be a problem, it would use the pip installed within the environment and install the pip package into the current anaconda environment. So while using conda as the main environment/package manager, it happens sometimes that some package I need is not available using conda, but only via pip. In the meantime, that might have improved, but just stuck with using conda for the environments. Although it is possible to work with just pip and things like virtualenv, especially in the beginning I often had issues trying to install certain packages under windows that required compilation steps. For the last couple of years, I have always turned to anaconda/miniconda for creating virtual environments with python, both under windows and linux.
0 Comments
Leave a Reply. |