Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

conda support - Windows 3.7+ #1986

Closed
gaborbernat opened this issue Oct 17, 2020 · 5 comments
Closed

conda support - Windows 3.7+ #1986

gaborbernat opened this issue Oct 17, 2020 · 5 comments

Comments

@gaborbernat
Copy link
Contributor

gaborbernat commented Oct 17, 2020

We don't have official conda support, but things kinda worked. This is no longer the case post #1976. Seems conda copies the venv module into its environments, and it's a version without the redirector script on Python3.7+.

❯ lsd --tree C:\Users\traveler\miniconda3\envs\virtualenv\Lib\venv\
 venv
├──  __init__.py
├──  __main__.py
├──  __pycache__
│  ├──  __init__.cpython-38.pyc
│  └──  __main__.cpython-38.pyc
└──  scripts
   ├──  common
   │  ├──  activate
   │  └──  Activate.ps1
   ├──  nt
   │  ├──  activate.bat
   │  └──  deactivate.bat
   └──  posix
      ├──  activate.csh
      └──  activate.fish

The part that differs from the core CPython:

❯ lsd --tree C:\\Users\\traveler\\AppData\\Local\\Programs\\Python\\Python38\\lib\\venv
 venv
├──  __init__.py
...
   ├──  nt
   │  ├──  activate.bat
   │  ├──  deactivate.bat
   │  ├──  python.exe
   │  └──  pythonw.exe
...

So users fail with:

(virtualenv) PS C:\Users\traveler> virtualenv --clear venv
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\users\\traveler\\miniconda3\\envs\\virtualenv\\Lib\\venv\\scripts\\nt\\python.exe'

We should run tests with conda too, and support it though. Then we should update https://virtualenv.pypa.io/en/latest/installation.html#python-and-os-compatibility

AntoineD added a commit to AntoineD/tox-conda that referenced this issue Nov 5, 2020
LexSong added a commit to LexSong/dotfiles that referenced this issue Nov 30, 2020
Also, virtualenv==20.0.34 is not compatible with conda on Windows

See:
ContinuumIO/anaconda-issues#12094
pypa/virtualenv#1986
LexSong added a commit to LexSong/dotfiles that referenced this issue Dec 1, 2020
virtualenv==20.0.34 is not compatible with conda on Windows

See:
ContinuumIO/anaconda-issues#12094
pypa/virtualenv#1986
LexSong added a commit to LexSong/dotfiles that referenced this issue Dec 2, 2020
virtualenv==20.0.34 is not compatible with conda on Windows

See:
ContinuumIO/anaconda-issues#12094
pypa/virtualenv#1986
LexSong added a commit to LexSong/dotfiles that referenced this issue Dec 23, 2020
virtualenv==20.0.34 is not compatible with conda on Windows

See:
ContinuumIO/anaconda-issues#12094
pypa/virtualenv#1986
@FaustinCarter
Copy link

Any updates on this?

@dmyersturnbull
Copy link

It looks like this is still happening.

I've pegged virtualenv==20.0.33 in the requirements for all of my projects, plus my template. Otherwise my conda users hit this issue when they try to install. Unfortunately this means they're missing nearly 2 years of virtualenv updates.

@dmyersturnbull
Copy link

Just a note to the devs: Starting tomorrow, Conda will be broken on Windows for every not-past-EOL Python for any virtualenv released in the last 3 years.

@gaborbernat
Copy link
Contributor Author

This feature is tagged with a help wanted. Seems no conda user/developer wanted to actually contribute though. I don't use conda, so this is not worth for me. In light of this closing this.

@gaborbernat
Copy link
Contributor Author

Note, you can try changing the creator from builtin to venv for conda, per https://virtualenv.pypa.io/en/latest/user_guide.html#creators; and that might work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants