Giter Club home page Giter Club logo

conda-auto-env's People

Contributors

chdoig avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

conda-auto-env's Issues

"source deactivate" does not work inside the environment once it has been activated with your script on MacOSX

Hi,

First, let me congratulate you for this great tool ๐Ÿ‘

I'm using MacOSX 10.12 at work and once I cd /path/to/my/python2/only/environment
and try to import numpywhich is not installed so these lines below behave as I expected :

/path/to/my/python2/only/environment : $ python -c "import numpy"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named numpy

If I want to come back to my original environment (where numpy is already installed) with source deactivate I still get the same error :

/path/to/my/python2/only/environment : $ source deactivate
/path/to/my/python2/only/environment : $ python -c "import numpy"
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ImportError: No module named numpy

If I cd .. or just cd and then type source deactivate, then the $ python -c "import numpy" works fine.

Can you have a look ?

Missing steps in your instructions

This doesn't work.

A step is missing from your instructions for me I had to add the following to requirements.yml
name: something

As soon as I did that it worked.

Cheers

AWESOMES STUFF!

Hey Christine,

This isn't an issue per se, just wanted to say I tried this on Ubuntu Linux and it works awesome ๐Ÿ˜„. Thanks for putting this together!

Cheers,
Eric

Issues finding existing conda env, caused by `environment.yml` line endings

Thanks for this script! Had been working great for me with the exception of one repository. Entering via the terminal kicked off the correct creation of the environment. However, once created, the conda_auto_env script failed to find it. So it would again try to create it, but conda would warn that the env already exists. This cycle would continue.

Some digging lead pointed to the line endings of the environment.yml file. The problematic repository had windows-based line endings.

> cat -e environment.yml
name: SampleName^M$
dependencies:^M$
  - python=3.10^M$
  - pip=22.1^M$

Repositories that worked fine had unix endings:

> cat -e environment.yml
name: AnotherSampleName$
dependencies:$
  - python=3.9.5$
  - bokeh=2.3.2$

From my brief exploration, it appears this line:

if [[ $PATH != *$ENV* ]]; then
fails to handle DOS endings. Converting the line endings to UNIX, as described in SO resolved the issue for the problematic repository.

How to install it for conda on windows machines?

We are trying to use conda-auto-env with Windows 7 and Anaconda 5.0, but we do not find the .bashrc or .bash-profile since we do not have a "bin" folder in our Anaconda main installation folder.

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.