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

An error occurs when operate a Conda environment that contains spaces in the path. #103

Closed
dunxuan opened this issue Dec 29, 2024 · 0 comments · Fixed by #113
Closed

An error occurs when operate a Conda environment that contains spaces in the path. #103

dunxuan opened this issue Dec 29, 2024 · 0 comments · Fixed by #113

Comments

@dunxuan
Copy link

dunxuan commented Dec 29, 2024

VSCode's Python Environments outputs:

2024-12-29 19:50:50.674 [error] Failed to delete conda environment: Error: Failed to run "conda env remove --yes --prefix c:\OneDrive - MSFT\Code\JDComment_Spider\.conda":
 usage: conda-script.py [-h] [-v] [--no-plugins] [-V] COMMAND ...
conda-script.py: error: unrecognized arguments: - MSFT\Code\JDComment_Spider\.conda

2024-12-29 20:13:14.956 [error] Error installing packages Failed to run "conda install --prefix c:\OneDrive - MSFT\Code\Python\.conda --yes requests":
 usage: conda-script.py [-h] [-v] [--no-plugins] [-V] COMMAND ...
conda-script.py: error: unrecognized arguments: requests

And like create or some else operate the env.

Enclosing the path in double quotes should solve the problem

@dunxuan dunxuan changed the title An error occurs when deleting a Conda environment that contains spaces in the path. An error occurs when deleting or creating a Conda environment that contains spaces in the path. Dec 29, 2024
@dunxuan dunxuan changed the title An error occurs when deleting or creating a Conda environment that contains spaces in the path. An error occurs when operate a Conda environment that contains spaces in the path. Dec 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant