netinvent / windows_tools

Collection of various interfaces for Windows functionality in a Pythonic way
BSD 3-Clause "New" or "Revised" License
63 stars 15 forks source link

Installation Failed -Access Denied - Pipenv - Python 3.10 #6

Closed pre22 closed 1 year ago

pre22 commented 1 year ago
Installing windows_tools...
                            Error:                                     windows_tools!
Error text: Collecting windows_tools
  Using cached windows_tools-2.3.0-py3-none-any.whl (46 kB)
Collecting pywin32>=210
  Using cached pywin32-304-cp310-cp310-win_amd64.whl (12.1 MB)
Collecting psutil>=5.6.0
  Using cached psutil-5.9.3-cp310-cp310-win_amd64.whl (247 kB)
Collecting command-runner>=1.2.1
  Using cached command_runner-1.4.0-py3-none-any.whl (22 kB)
Collecting python-dateutil>=2.8.1
  Using cached python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
Collecting typing>=3.5.0
  Using cached typing-3.7.4.3-py3-none-any.whl
Collecting ofunctions.file-utils>=1.0.2
  Using cached ofunctions.file_utils-1.2.2-py3-none-any.whl (13 kB)
Collecting wmi>=1.4.9
  Using cached WMI-1.5.1-py2.py3-none-any.whl (28 kB)
Collecting ofunctions.random>=0.1.1
  Using cached ofunctions.random-0.2.0-py3-none-any.whl (6.9 kB)
Collecting six>=1.5
  Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: pywin32, wmi, typing, six, psutil, ofunctions.random, python-dateutil, command-runner, ofunctions.file-utils, windows_tools

ERROR: Could not install packages due to an OSError: [WinError 5] Access is denied: 'C:\\Users\\.virtualenvs\\VaMkNO3m\\Lib\\site-packages\\pywin32_system32\\pythoncom310.dll'
Check the permissions.

Installation Failed
deajan commented 1 year ago

Please keep posting to the same error. The problem is not related to windows_tools here. As you can see, you don't have permissions to write to your virtualenv.

Retry with an elevated command line perhaps ?