Я получаю сообщение об ошибке ниже, когда пытаюсь установить cx_Oracle через cmd в Windows 10. Когда я пытаюсь установить в первый раз, он попросил меня установить MS Visual C ++ 14 и для установки PATH и, наконец, показать вкомандная строка.
Не удалось установить пакеты из-за ошибки EnvironmentError
C:\Users\Dell>pip install cx_Oracle==5.1.3
Collecting cx_Oracle==5.1.3
Using cached https://files.pythonhosted.org/packages/be/25/afc07a79ed268f6ab2e8959cfcff997504ce09500b881a1d93f92904762e/cx_Oracle-5.1.3.tar.gz
Error checking for conflicts.
Traceback (most recent call last):
File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2897, in _dep_map
return self.__dep_map
File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2691, in __getattr__
raise AttributeError(attr)
AttributeError: _DistInfoDistribution__dep_map
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2888, in _parsed_pkg_info
return self._pkg_info
File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2691, in __getattr__
raise AttributeError(attr)
AttributeError: _pkg_info
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\pip\_internal\commands\install.py", line 503, in _warn_about_conflicts
package_set, _dep_info = check_install_conflicts(to_install)
File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\pip\_internal\operations\check.py", line 108, in check_install_conflicts
package_set, _ = create_package_set_from_installed()
File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\pip\_internal\operations\check.py", line 47, in create_package_set_from_installed
package_set[name] = PackageDetails(dist.version, dist.requires())
File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2635, in requires
dm = self._dep_map
File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2899, in _dep_map
self.__dep_map = self._compute_dependencies()
File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2908, in _compute_dependencies
for req in self._parsed_pkg_info.get_all('Requires-Dist') or []:
File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 2890, in _parsed_pkg_info
metadata = self.get_metadata(self.PKG_INFO)
File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1410, in get_metadata
value = self._get(self._fn(self.egg_info, name))
File "c:\users\dell\appdata\local\programs\python\python37-32\lib\site-packages\pip\_vendor\pkg_resources\__init__.py", line 1522, in _get
with open(path, 'rb') as stream:
FileNotFoundError: [Errno 2] No such file or directory: 'c:\\users\\dell\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\cx_oracle-7.0.0.dist-info\\METADATA'
Installing collected packages: cx-Oracle
Found existing installation: cx-oracle 7.0.0
Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: 'c:\\users\\dell\\appdata\\local\\programs\\python\\python37-32\\lib\\site-packages\\cx_oracle-7.0.0.dist-info\\RECORD'
Я устанавливаю cx_Oracle, чтобы установить соединение между базой данных Django и Oracle.