nichollsg
nichollsg

Reputation: 390

pip install for windows running into anaconda error

I am trying to pip install pyrtlsdr for the software defined radio RTL-SDR (RTL2832U), but am running into issues with anaconda I believe. I am receiving two errors in cmd, although I am getting the same response through cygwin and cmder. I am running the following command:

pip install pyrtlsdr

However, when I run this command, I see the following error:

pip install pyrtlsdr
Collecting pyrtlsdr
  Using cached pyrtlsdr-0.2.4-py2.py3-none-any.whl
Installing collected packages: pyrtlsdr
Exception:
Traceback (most recent call last):
  File "C:\Program Files\Anaconda2\lib\site-packages\pip\basecommand.py", 
  line 215, in main
status = self.run(options, args)
File "C:\Program Files\Anaconda2\lib\site-packages\pip\commands\install.py", 
line 317, in run
  prefix=options.prefix_path,
File "C:\Program Files\Anaconda2\lib\site-packages\pip\req\req_set.py", line 
742, in install
  **kwargs
File "C:\Program Files\Anaconda2\lib\site-packages\pip\req\req_install.py", 
line 831, in install
  self.move_wheel_files(self.source_dir, root=root, prefix=prefix)
File "C:\Program Files\Anaconda2\lib\site-packages\pip\req\req_install.py", 
line 1032, in move_wheel_files
  isolated=self.isolated,
File "C:\Program Files\Anaconda2\lib\site-packages\pip\wheel.py", line 346, 
in 
move_wheel_files
  clobber(source, lib_dir, True)
File "C:\Program Files\Anaconda2\lib\site-packages\pip\wheel.py", line 317, 
in 
 clobber
 ensure_dir(destdir)
File "C:\Program Files\Anaconda2\lib\site-packages\pip\utils\__init__.py", 
line 83, in ensure_dir
  os.makedirs(path)
File "C:\Program Files\Anaconda2\lib\os.py", line 157, in makedirs
  mkdir(name, mode)
WindowsError: [Error 5] Access is denied: 'C:\\Program 
Files\\Anaconda2\\Lib\\site-packages\\pyrtlsdr-0.2.4.dist-info'
You are using pip version 8.1.2, however version 9.0.1 is available.
You should consider upgrading via the 'python -m pip install --upgrade pip' 
command.

What exactly is wrong here? I do not know how to force privileges in this file that I think is causing issues, additionally, I also do not know why I am receiving the same error when I run the suggested upgrade in this error.

Upvotes: 2

Views: 1103

Answers (1)

Nour
Nour

Reputation: 2179

Try running the cmd line as administrator, this should give write privilege to C drive.

Upvotes: 1

Related Questions