Whenever I run pip install <PACKAGE-NAME>
. cmd
throws an error. It is only when I run pip install <PACKAGE-NAME> --user
the command prompt works properly without any error.
For instance, when I run pip3 install runway-python
I get, ERROR:
Exception: Traceback (most recent call last): File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\pip_internal\cli\base_command.py", line 186, in _main status = self.run(options, args) File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\pip_internal\commands\install.py", line 258, in run isolated_mode=options.isolated_mode, File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\pip_internal\commands\install.py", line 604, in decide_user_install if site_packages_writable(root=root_path, isolated=isolated_mode): File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\pip_internal\commands\install.py", line 549, in site_packages_writable test_writable_dir(d) for d in set(get_lib_location_guesses(**kwargs)) File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\pip_internal\commands\install.py", line 549, in test_writable_dir(d) for d in set(get_lib_location_guesses(**kwargs)) File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\pip_internal\utils\filesystem.py", line 140, in test_writable_dir return _test_writable_dir_win(path) File "c:\program files (x86)\microsoft visual studio\shared\python37_64\lib\site-packages\pip_internal\utils\filesystem.py", line 153, in _test_writable_dir_win fd = os.open(file, os.O_RDWR | os.O_CREAT | os.O_EXCL) PermissionError: [Errno 13] Permission denied: 'c:\program files (x86)\microsoft visual studio\shared\python37_64\Lib\site-packages\accesstest_deleteme_fishfingers_custard_1epdye'
it's fine when I append the code with --user
. is there a way to fix this?
I mean so that I don't have to append every pip install
command with a --user
.