multi user install of Anaconda does not allow the command (pip install -U pyvisa) that it permitted in previous single user install
On a previous computer I used the command pip install -U pyvisa, but it was single user. I am attempting to use this same command with a multi-user install of Anaconda and this is the error I get. I have been able to execute the mkdir command and the echo command, but am unable to execute the bzip2 command. I did attempt using the conda install -c anaconda bzip2 command, but then I get the error failed - Permission Error 13. In addition, I tried a sudo chown command that was offered on github with no success.
Error Messages from Anaconda Prompt (base) C:\ProgramData\Anaconda3>conda install -c AltumRF-Dallas-Admin pyvisa Solving environment: failed
CondaHTTPError: HTTP 404 NOT FOUND for url https://conda.anaconda.org/AltumRF-Dallas-Admin/noarch/repodata.json Elapsed: 00:00.711005 CF-RAY: 4b0f20b1fbd5c7f8-DFW
The remote server could not find the noarch directory for the requested channel with url: https://conda.anaconda.org/AltumRF-Dallas-Admin
As of conda 4.3, a valid channel must contain a noarch/repodata.json and associated noarch/repodata.json.bz2 file, even if noarch/repodata.json is empty. please request that the channel administrator create noarch/repodata.json and associated noarch/repodata.json.bz2 files. $ mkdir noarch $ echo '{}' > noarch/repodata.json $ bzip2 -k noarch/repodata.json
You will need to adjust your conda configuration to proceed. Use conda config --show channels to view your configuration's current state. Further configuration help can be found at https://conda.io/docs/config.html.
@dlbaker21
Answer to #215. In a multi-user install of Anaconda, you must use the (pip install -U pyvisa) command from the C:\ProgramData\Anaconda3\Scripts directory and NOT from the C:\Users\Username\ directory where the Anaconda Prompt directs a user initially. The following shows the pip command working.
8(base) C:\ProgramData\Anaconda3>python Python 3.7.1 (default, Dec 10 2018, 22:54:23) [MSC v.1915 64 bit (AMD64)] :: Anaconda, Inc. on win32 Type "help", "copyright", "credits" or "license" for more information.
exit()
(base) C:\ProgramData\Anaconda3>cd scripts
(base) C:\ProgramData\Anaconda3\Scripts>pip install -U pyvisa Collecting pyvisa Downloading https://files.pythonhosted.org/packages/7a/0d/0044e549631fe9ebc204c1ad53d6a3333f621a324d167a4e0a2b75c0ab0d/PyVISA-1.9.1-py3-none-any.whl (124kB) 100% |████████████████████████████████| 133kB 2.6MB/s Installing collected packages: pyvisa Successfully installed pyvisa-1.9.1