Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Anaconda install package without administrator rights

I have a python installation in a directory where I don't have admin rights or write permission. I am using Python 3.6.5 and conda 4.5.4 on windows 7.

When run conda install -c conda-forge python-fmask I get the following error message:

Preparing transaction: done
Verifying transaction: done
Executing transaction: failed
ERROR conda.core.link:_execute(502): An error occurred while uninstalling package 'defaults::pytables-3.4.3-py36he6f6034_1'.

PermissionError(13, 'Access denied')

The folders conda-meta and pkgs are located in a directory where I have write permission. There are hardlinks to these folders in the Anaconda installation directories. In which directories does conda need permissions in order to install packages?

like image 544
yPennylane Avatar asked Aug 29 '18 11:08

yPennylane


People also ask

Can you install Anaconda without admin rights?

The first recommended software is to use Anaconda as it comes with the majority of useful handy packages, and it can be installed directly to your working machine in portable mode without requiring administrative right.

Do I need admin rights to install Python packages?

To install Python packages (“eggs”) from the Python language's package manager pip, follow our instructions below. This can be done without Administrator access in a per-user, per-project clean manner with virtualenv.


2 Answers

I was running into this problem. My solution is to reinstall Anaconda and when selecting installation type, select "Just Me" so that the installation is in your user directory where you have full access rights.

Perhaps this is not the most pleasant solution, as it requires reconfiguring your Anaconda setup, but it solves the problem.

like image 120
Paul Wintz Avatar answered Jan 04 '23 02:01

Paul Wintz


You can try asking the administrator to let users have control over the folder where anaconda is installed. This is a one-time thing and is easier than asking to run as admin every time you have to install a package.

like image 23
Aykaz Eremyan Avatar answered Jan 04 '23 00:01

Aykaz Eremyan