Faq python config freezes at pip dependencies: Difference between revisions
Jump to navigation
Jump to search
Line 14: | Line 14: | ||
# Type <code>conda env create -f pls_toolbox_<platform>_38.yml</code> and enter. This may take several minutes depending on your machine. | # Type <code>conda env create -f pls_toolbox_<platform>_38.yml</code> and enter. This may take several minutes depending on your machine. | ||
## <platform> is one of either mac, windows, or linux, depending on what OS you are running. | ## <platform> is one of either mac, windows, or linux, depending on what OS you are running. | ||
## If you receive <code>CondaValueError: prefix already exists</code> while doing this step, the environment must be deleted in order to continue properly. One can do this by typing the command <code>conda remove -n pls_toolbox_<platform>_38</code>. Then repeat Step 5. | |||
# Next, type <code>conda activate pls_toolbox_<platform>_38</code> and enter. | # Next, type <code>conda activate pls_toolbox_<platform>_38</code> and enter. | ||
# Type <code>python</code> and enter. | # Type <code>python</code> and enter. |
Revision as of 05:45, 30 March 2022
Issue:
Why does Python configuration freeze at the 'Installing pip dependencies...' step?
Possible Solutions:
This seems to be a Miniconda issue when building the PLS_Toolbox virtual environment for the first time. It might also be worth noting we have only seen this on Windows machines so far (if you are running something different and encounter this, please let us know). Here is a workaround for those who have this issue in MATLAB:
- Get path to config_pyenv.m.
- From the MATLAB Command Window, type in the command
which config_pyenv
and enter. - Copy output of this command.
- From the MATLAB Command Window, type in the command
- Open Anaconda Powershell Prompt (Windows) or Terminal (macOS or Linux).
- Type
cd 'PASTE_OUTPUT_FROM_STEP_1_HERE'
and enter. - Type
cd ymls
and enter. - Type
conda env create -f pls_toolbox_<platform>_38.yml
and enter. This may take several minutes depending on your machine.- <platform> is one of either mac, windows, or linux, depending on what OS you are running.
- If you receive
CondaValueError: prefix already exists
while doing this step, the environment must be deleted in order to continue properly. One can do this by typing the commandconda remove -n pls_toolbox_<platform>_38
. Then repeat Step 5.
- Next, type
conda activate pls_toolbox_<platform>_38
and enter. - Type
python
and enter. - Type
import sys
and enter. - Type
sys.executable
and enter. Copy this output. - Go back to the MATLAB command window. Type in
pyenv('Version','PASTE_OUTPUT_FROM_STEP_9_HERE','ExecutionMode','InProcess')
and enter. - We then urge to rerun
config_pyenv
to see if this fixed the issue.
Still having problems? Please contact our helpdesk at helpdesk@eigenvector.com