Giter Club home page Giter Club logo

Comments (9)

chenbojian avatar chenbojian commented on May 17, 2024 1

I think it will be good to use ~/.virtualenvs in Mac. Because pipenv is also using that directory.

from hatch.

ofek avatar ofek commented on May 17, 2024

Thanks! Could you please tell me what directories are located in your virtual env bla?

from hatch.

ofek avatar ofek commented on May 17, 2024

@chbndrhnns Can you paste more of your terminal session?

from hatch.

ofek avatar ofek commented on May 17, 2024

I found:

https://stackoverflow.com/a/36236806/5854007
https://stackoverflow.com/a/45534625/5854007

from hatch.

ofek avatar ofek commented on May 17, 2024

@chbndrhnns I did a bit more digging and discovered https://github.com/kennethreitz/pipenv/issues/234

So it seems this is not a bug in Hatch, but rather virtualenvwrapper simply doesn't play nicely with other venv managers.

I'll leave this open for today though. Please let me know what you end up doing!

from hatch.

chbndrhnns avatar chbndrhnns commented on May 17, 2024

Following https://stackoverflow.com/a/36236806/5854007 worked well. Thanks very much!

from hatch.

ofek avatar ofek commented on May 17, 2024

I'm glad that helped, enjoy!

from hatch.

chenbojian avatar chenbojian commented on May 17, 2024

I'm encountering the same issue in Mac OSX. I am using Python 3.6. But I can not fix it with the link you provided.
My problem is hatch can generate virtual env. But when I hatch use. Nothing happens. After I source path/to/active manually it works. But when I run pip an error happens. bad interpreter: "/Users/chenbojian/Library/Application: no such file or directory
I tested by myself and find that in the pip file, the shebang line is #!"/Users/chenbojian/Library/Application Support/hatch/venvs/test/bin/python3" .
So it looks like that shebang can not support executable in a directory with space. I think this is not a hatch issue. However, can we be able to customize VENV_DIR in hatch instead of always using user_data_dir.

from hatch.

ofek avatar ofek commented on May 17, 2024

@chenbojian I think instead I'm going to make a breaking change and use ~/.virtualenvs like other tools do. What do you think?

from hatch.

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.