conda-pack icon indicating copy to clipboard operation
conda-pack copied to clipboard

certain path entries on windows 10 can lead to Invoke-Expression errors

Open jganseman opened this issue 2 years ago • 0 comments

Hi everyone,

This is not really a conda-pack issue because the error comes from other software on the system. But this might be useful info for people that encounter this themselves, so I'm putting it out here.

On a Windows 10 system that also had RStudio installed, I had a weird PATH entry that looked like ${RTOOLS40_HOME}\usr\bin;${PATH} (maybe because of an error during the installation of RStudio?). This entry lead to multiple Invoke-Expression errors about invalid characters when trying to activate a recently unpacked conda environment.

My solution was to manually edit the PATH (type windows key + X --> System --> type "environment" --> click "edit the system environment variables"), edit that entry, and remove everything from the semicolon onwards (included) , effectively changing it into ${RTOOLS40_HOME}\usr\bin . I'm not an R user myself but RStudio seemed to still work fine afterwards.

After editing and opening a new Anaconda Powershell Prompt, activating the newly unpacked environment worked just fine, following these instructions. Great job!

jganseman avatar May 31 '22 08:05 jganseman