Hi I'm trying to install TensorFlow for MAC M1 Chip OS 12.0. Post installing the application and trying to install numpy and Jupiter notebook using the below command
conda install notebook - y
conda install -c conda-forge numpy -y
I get the error
Unable to create environments file. Path not writable.
environment location: /Users/ren/.conda/environments.txt
done
Executing transaction: | WARNING conda.core.envs_manager:register_env(50): Unable to register environment. Path not writable or missing.
environment location: /Users/ren/miniforge3
registry file: /Users/ren/.conda/environments.txt
I went to the folder and changed the permissions of the file manually it did not work
I ran the command 775 /.conda/ from the terminal it did not work. I removed all the folders for anaconda and Miniforge multiple times I get the same error.
Any suggestions how to get this to work?
Regards,
Ren
sudo chmod -R 775 /Users/Ren/.conda Worked for me after trying multiple solutions.
I solved this by manually chmoding the file path.
sudo chmod 775 /Users/michaelmoreno/.conda/environments.txt
I am a 10.13.4 Mac user and I have ROOT 6.14.00 installed from running the dmg file downloaded from https://root.cern.ch/content/release-61400. I then tried to install rootpy by
sudo pip install rootpy
it gives me the error
ROOT cannot be imported. Is ROOT installed with PyROOT enabled?
Command "python setup.py egg_info" failed with error code 1 in /private/tmp/pip-install-Idx6tf/rootpy/
I do not know what is going on, but I see the root_v6.14.00 lying in Application/ folder (and I see documentation says that pyROOT is on by default), and I have python 2.7.10 installed on my Mac. There seem to be no documentation online for solving this issue. I wonder if anyone knows what is going on or am I better off install rootpy on ubuntu on a virtual machine?
The problem is that you might have a local installation of ROOT. If you don't want to install ROOT system wide, you can install rootpy for your user only:
python setup.py install --user
If this is not what you want, you can login as root using sudo su, then export what is in thisroot.sh from wherever your ROOT installation is:
source path_to_root/bin/thisroot.sh
Then you can install rootpy system-wide executing python setup.py install, without logging out as root.
I'm a *nix noob. I'm on Ubuntu 16.04.
I'm trying to install bluepy to a virtualenv. It is currently installed under my user (not a virtualenv). When running pip freeze I see it listed under my user. When I activate the virtualenv and run pip freeze it does not show up. I tried to install it under the virtualenv using the following command: sudo pip3 install bluepy. It returns this:
The directory '/home/todd/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/todd/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
I'm not sure what to do. If responding please add explanations so I can learn something. Thanks!
EDIT:
This answer did not help solve my problem. It was tailored for a Mac OS, not Ubuntu.
pip install: Please check the permissions and owner of that directory
~$ conda update conda
Solving environment: done
## Package Plan ##
environment location: /home/david/anaconda3
added / updated specs:
- conda
The following packages will be UPDATED:
conda: 4.4.10-py36_0 --> 4.4.11-py36_0
Proceed ([y]/n)? y
Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(481): An error occurred while uninstalling package 'defaults::conda-4.4.10-py36_0'.
PermissionError(13, 'Permission denied')
Attempting to roll back.
Rolling back transaction: done
PermissionError(13, 'Permission denied')
I was trying to update conda on virtualbox ubuntu 16.04 and this permission error came up. I tried sudo conda update conda but it returns sudo: conda: command not found. I'm not sure where to go from here.
I got the same error and solved it by this:
sudo env "PATH=$PATH" conda update conda
All conda commands must be run without super user privileges. That's why sudo conda command doesn't work.
You may have run conda installation bush file with super user privileges while installing. The user (david) running conda doesn't have write permissions to paths(/home/david/anaconda3) it needs to modify in the environment, then conda can't do anything. To solve this problem you need to change permissions to paths (/home/david/anaconda3).
To change permissions to paths (/home/user/anaconda3) using:
sudo chown -R user /home/user/anaconda3
I solved this problem by right clicking on Anaconda Prompt, selecting "Run As Administrator", and typing the command that I want to execute.
This problem arise if at installation time, we select an option install for all user anaconda. It can be solved as I mentioned above - run it as Administrator and type the conda commands for install, updating the packages.
It's Permission denied, So just sudo chown -R frazier:frazier /home/frazier/anaconda3
PS: change 'frazier' to your user name.
conda install numpy
{
Executing transaction: failed
ERROR conda.core.link:_execute(502): An error occurred while uninstalling package 'defaults::conda-4.5.4-py27_0'.
OSError(13, 'Permission denied')
Attempting to roll back.
Rolling back transaction: done
OSError(13, 'Permission denied')}
solution:
to change the permission to conda, use the command :
sudo chown -R nikhil /home/nikhil/miniconda
chown command changes the permission of miniconda to use sudo.
now you have the permisssion to access sudo..
now use:
conda update conda
now
Executing transaction: Done
You have installed Anaconda with sudo or root user. You need to install it with normal ubuntu/<Your username> user.
Remove or take backup of the already installed Anaconda (/home/<user>/anaconda3).
With normal mode install anaconda ( bash conda_installer_script ) .
Check .bashrc for this line and validate it.
export PATH="/home/<username>/anaconda3/bin:$PATH"
If not add it with proper anaconda path .
Reload .bashrc file and check conda is working by conda list command.
Now you can do conda update conda
I too had this error and resolved it by doing the following things - a little strange but worth a try.
1. Run as administrator
2. Run the code below to specifically update package in an environment -myenv
$conda install --name myenv numpy
3. For me the environment was running hence it was not updating, once I closed my running workbooks, and ran Point 1 and 2 .. it worked :)
if you have this error message during package installation in anaconda then follow the given step:
open the anaconda prompt by right click.
select the run as administrator.
type the command for install package.eg conda install numpy
Run Anaconda Prompt using "Run as Administrator" option and then
run the command -> conda update conda
Then go back to starting Anaconda Prompt as usual and I believe everything should be fine.
Also, don't forget to add Anaconda3 path to Environment variables.
Hello I am getting following error during virtualenv creation.
Here is the error:
$ mkvirtualenv cv
ERROR: virtualenvwrapper could not find /usr/local/bin/virtualenv in your path
Before this I was getting some weird message during the run of following commands:
sudo python get-pip.py
sudo pip install virtualenv virtualenvwrapper
Here is the weird message:
The directory '/home/myusername/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/myusername/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
If I run this command sudo apt install virtualenv or virtualenvwrapper then I don't get the above weird message. but this don't help me to create virtualenv
python path is /usr/bin/python
Can anybody help me to figure out the issue by providing detailed command?
First, let's clear your "weird" message. It means that you've already used sudo -H before and sudo changed ownership for some of your files to root. Take the files back with the command
sudo chown -R myusername /home/myusername
(change myusername to your real login name; I used the name you've used in your question.)
After that upgrade pip and follow installation instructions for virtualenv and virtualenvwrapper:
sudo pip install -U pip setuptools virtualenv virtualenvwrapper
source /usr/local/bin/virtualenvwrapper.sh