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?
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.
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.
Related
I would like to have the exact same setup of jupyterlab in every new anaconda environment. Just like I can define some default packages to be installed when creating an environment with
conda config --add create_default_packages package1 package2
I would like to install a few jupyterlab extensions. I can install them by using the command
jupyter labextension install,
but this is a jupyterlab command and not a conda one. Is there a way of creating a script, that would execute only once after creating an environment, or some other mechanism that would let me automate this process?
With JupyterLab 3+.0+ you should not need to install extensions with jupyter labextension install; instead installation with pip install or conda install is now the recommended approach for most users (see documentation).
Extensions installable with pip/conda* do not require Node.js and are therefore more robust and user-friendly; we call them "prebuilt extensions", in contrast to the old "source extensions". We are considering removing support for installing source extensions by end users in a future version of JupyterLab (but not for advanced users and system administrators who should still be able to access this mechanism) as source extensions proved to be causing more trouble than benefit for an average user, and users so far were happy with the transition.
Please also see:
Unable to install jupyterlab-execute-time extension
RuntimeError: JupyterLab failed to build
If extension is not on conda-forge you can always contribute a recipe for it. If that's the case let me know and I can help you with the next steps.
*) or any other package manager which is able to place a .js file in appropriate location - this is not limited to Python ecosystem
When I pip install AnyPackage I receive output telling me that it is "Defaulting to user installation because normal site-packages is not writeable":
I have tried uninstalling Python, but it does not solve the problem.
I am using an admin account on windows-10 Home Edition, and running python-3.9, (downloaded directly from python.org), installed using the "add to path" option.
It is worth noting that I can't access any package from cmd, for instance:
P.S Why does it install the package in AppData\Roaming\Python\Python39\Scripts, when Python is installed to C:\Program Files\Python39?
As for my goal, I would like to avoid any future problems this might cause me.
I would also like to be able to create a virtual environment, using virtualenv.
For me not using my IDE with virtual environment solved the problem and to install all modules using administrator privileges.
Use bash to install packages instead of Powershell
I was installing anaconda for my Ubuntu 18.04 machine but I happened to exit the terminal accidentally after a couple of hours. I wish to resume the installation process at that step where it was installing various packages like sklearn, qt, etc.
I get the following error when I run bash Anaconda3-2018.12-Linux-x86_64.sh and give the path where I want my conda home to be (not the default home folder)
ERROR: File or directory already exists: '<path_to_anaconda>/anaconda3'
If you want to update an existing installation, use the -u option.
How do I approach this error? How do I recover from partial installation?
Also conda update --all gives an error conda:command not found
I am getting this error in windows platform, after creating virtual environment whenever I am trying to run conda command to install any package this error occurs.
(py36) C:\Users\ND_Londhe>conda install -c anaconda spyder
Solving environment: failed
NotWritableError: The current user does not have write permissions to a required path.
path: C:\C:\Users\ND_Londhe\Anaconda2\pkgs\urls.txt
All solutions out there are for ubuntu.
yeah, you must use your root permission to install the package ,so Don't use the user to install. try it and it's fine!
I am trying to reinstall anaconda 64 bit on Windows 10 to use Python 3.6 and the installations works right till the end but it fails executing the post install script with following error.
You have some missing files, try to uninstall and download it again. Don't try to pause the files, it might cause these kind of errors.
I got it running after installing in a different directory. Just make sure you don't install it in the default location provided. I made a new directory in C-Drive and installed anaconda in it. My install location is C:\Anaconda3. And it worked finally