Coder Social home page Coder Social logo

`pip install -e` installs the source under the current working directory instead of under the environment directory about berryconda HOT 4 CLOSED

jjhelmus avatar jjhelmus commented on June 26, 2024
`pip install -e` installs the source under the current working directory instead of under the environment directory

from berryconda.

Comments (4)

Chong-Jiao avatar Chong-Jiao commented on June 26, 2024 4

How can I uninstall it if I install it by "pip install -e ."?

from berryconda.

ksze avatar ksze commented on June 26, 2024

This is what pip install --help has to say about installing editable projects:

--src <dir>                 Directory to check out editable projects into. The default in a virtualenv is "<venv path>/src". The default for global installs is "<current dir>/src".

I also made sure that I'm running pip in the conda environment:

~ $ which pip
/home/ksze/berryconda3/envs/foobar/bin/pip

This suggests that pip somehow doesn't recognize a conda environment as a proper virtualenv.

However, you would probably agree that, for all intents and purposes, a conda environment activated by source activate foobar should be treated like a proper virtualenv. The question is how to make pip recognize it.

from berryconda.

jjhelmus avatar jjhelmus commented on June 26, 2024

Unfortunately conda environments are not virtualenv and therefore pip install -e results in the default behavior of installing into the current working directory. I agree that it would be nice if conda and virtualenv were more aware of each other. This is not an issue specific to berryconda, the same behavior is seen when using conda on other platforms. Opening issues upstream with with pip, virtualenv or conda would be a better place to discuss this topic.

from berryconda.

mrjamescollins avatar mrjamescollins commented on June 26, 2024

'pip uninstall '
you can get this name by doing a 'pip list'

from berryconda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.