Python Forum

Full Version: Install Module dbfread
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi Guys,

I am new here and don't have much experience with Python. I am looking for help with the installation of the module dbfread.

I use Python27 and tried the following command in cmd
Quote:C:\Python27\ArcGIS10.5\Scripts>pip install dbfread

and received following error message
Error:
Collecting dbfread Using cached dbfread-2.0.7-py2.py3-none-any.whl Installing collected packages: dbfread Exception: Traceback (most recent call last): File "c:\python27\arcgis10.5\lib\site-packages\pip\basecommand.py", line 215, in main status = self.run(options, args) File "c:\python27\arcgis10.5\lib\site-packages\pip\commands\install.py", line 342, in run prefix=options.prefix_path, File "c:\python27\arcgis10.5\lib\site-packages\pip\req\req_set.py", line 784, in install **kwargs File "c:\python27\arcgis10.5\lib\site-packages\pip\req\req_install.py", line 851, in install self.move_wheel_files(self.source_dir, root=root, prefix=prefix) File "c:\python27\arcgis10.5\lib\site-packages\pip\req\req_install.py", line 1064, in move_wheel_files isolated=self.isolated, File "c:\python27\arcgis10.5\lib\site-packages\pip\wheel.py", line 345, in move_wheel_files clobber(source, lib_dir, True) File "c:\python27\arcgis10.5\lib\site-packages\pip\wheel.py", line 316, in clobber ensure_dir(destdir) File "c:\python27\arcgis10.5\lib\site-packages\pip\utils\__init__.py", line 83, in ensure_dir os.makedirs(path) File "c:\python27\arcgis10.5\lib\os.py", line 157, in makedirs mkdir(name, mode) WindowsError: [Error 5] Access is denied: 'c:\\python27\\arcgis10.5\\Lib\\site-packages\\dbfread'
I then downloaded the .whl file from here: https://pypi.python.org/pypi/dbfread and tried the following command
Quote:pip install PathToDownloadedFile.whl

but got the same error message.

Can anyone help please and tell me what this error means and how I can fix it?

Many thanks,
Tegir
I believe you don't have admin rights.
Run cmd as admin.
Thamk you guys, opening cmd as admin solved the issue!