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
Unable to register environment - during installation error #11148
Comments
That is definitely an odd error, and we didn't see this during our QA process. Can you verify if the ~/.conda folder already exists? If so, is the environments.txt present, but not writable? Have you had an anaconda installation earlier that may have left that file in a strange state? It looks like your installation is otherwise intact. Can you create new environments?
|
Field Report: I observed an identical error to the above, and for me the |
FYI, I observed an identical error to the above, and my ~/.conda folder did not appear on first run. I ran the install script again with the -u option, then created a conda environment, and the ~/.conda folder finally appeared. |
Hi, Recently, I was trying to install the
Did you install into the same path as before when using the Thanks, Maryo. |
@MaryoHg yes, the install path was identical. My command was the same except for the addition of |
I had the same error. |
Thanks @dustinfreeman. After manually source the base conda environment (I do not initialize it from start) and creating some environments without any issue, I realized the hidden folders were created. So I guess I'm fine until now. Hope all goes OK. |
same issue with latest miniconda, currently switching to the old version installer would help. |
I just experienced this issue while trying to install Anaconda3 on a Centos7 machine. Anaconda is already installed for a different user on this same machine, but there shouldn't be any path overlaps with existing installs. I first attempted to fix this issue by using that -u option, but it still couldn't create the directory. The .conda folder only appeared after running the following, similar to @Furqan136 : source anaconda3/bin/activate |
Try before install create .conda path in the same path will install anaconda
|
I have the same error with Anaconda3-2019.07-Linux-x86_64.sh. I had a previous Anaconda 2 installation. I see that ~/.conda exists now after creation of 2 environments. I don't know if the .conda folder existed before/after install but I don't see .anaconda. |
Note that I had the same problem using Docker 19.* but not Docker 18.*, creating the .conda folder before executing the command fixed it weirdly. |
I have encountered the same issue except on a windows 64-bit install. Preparing transaction: ...working... done The bottom line is that I can not install Anaconda successfully. Help appreciated. |
I am trying to use Conda to install a package that has failed under other installation methods. When installing Anaconda I received the same error as the OP: The ~/.conda folder was created, but is empty. How can I test if this Anaconda installation worked? Does anyone have a solution for this error? |
Creating |
I can also confirm the issue. Trying to install Anaconda on an EC2 instance using the following steps: ANACONDA_INST_DIR=$HOME/anaconda3
rm -rf $ANACONDA_INST_DIR
rm -rf $HOME/tmp
mkdir $HOME/tmp
ANACONDA_INST_NAME=Anaconda3-2019.07-Linux-x86_64.sh
wget https://repo.anaconda.com/archive/${ANACONDA_INST_NAME} -O $HOME/tmp/$ANACONDA_INST_NAME
bash $HOME/tmp/$ANACONDA_INST_NAME -f -b -p $ANACONDA_INST_DIR ended up with the following:
If I create the directory |
I had this problem on Mac OS 10.14.6. Creating the ~/.conda directory before running the script fixed it. I deleted the ~/.conda and ~/miniconda directories and re-ran the installation script. The error re-appeared. |
First way: Firstly, run this command to remove anaconda3 folder:
Then, remove this line from your .bash_profile (or .bashrc):
Then reinstall anaconda :) Second way: Create
file and change the owner to drb from root user. If you don't have /Users/drb/.conda/environments.txt file, create it and change the owner to drb |
Have the same issue. MacOS Mojave 10.14.5 Same error as everyone above. The mention folder/ file not created. |
I am getting this error on arch linux
Executed the .sh found here: System info: |
This seems like it's probably a race condition causing a permissions problem, but I haven't managed to isolate it yet. The code that is doing the registration (creation of that folder and file) is not run in parallel: https://github.com/conda/conda/blob/4.7.10/conda/core/link.py#L636-L642 The error you see is this one: https://github.com/conda/conda/blob/4.7.10/conda/core/path_actions.py#L955-L961 The path unfortunately does not appear to be configurable, because all of the calls to this function have no parameter: https://github.com/conda/conda/blob/4.7.10/conda/core/envs_manager.py#L21 As a workaround, please take the advice of many others here: |
Same occurs to me during installation and freedom9393 solution works. Thank you all |
I can replicate this by running conda in stall in a Docker image.
In an Ubuntu 16.04 image. After the install and update however the environments.txt file does actually get created. |
This will be fixed in conda 4.7.12 and later, but unfortunately we can't retroactively fix existing installers. If you see this problem, please take the advice of many others here: mkdir ~/.conda and ignore the warning - that should allow you to move forward. |
creating the ~/.conda made the installation run without any errors/warnings. But I still can't directly run conda or anaconda-navigator. [edit: Solution] |
I had this problem today installing Miniconda3 ; it appears the miniconda installer is still at version 4.7.10, as can be seen at https://docs.conda.io/en/latest/miniconda_hashes.html or by doing
after downloading the installer from https://docs.conda.io/en/latest/miniconda.html. |
Yes, in the next 1-2 weeks |
Actual Behavior
I followed instructions to download anaconda using command line from here.
I accepted the license terms & confirmed the default location
~/anaconda3
for installationEverything looks okay, except
/Users/drb/.conda/environments.txt
was NOT made!/Users/drb/.conda/environments.txt
was NOT made!Expected Behavior
It seems like
/Users/drb/.conda/environments.txt
should have been made.Steps to Reproduce
see what actually happened
Anaconda or Miniconda version:
I downloaded, and installed from, the file:
Anaconda3-2019.07-MacOSX-x86_64.sh
Operating System:
macOS Mojave, version 10.14.6
conda info
conda list --show-channel-urls
The text was updated successfully, but these errors were encountered: