SoFunction
Updated on 2024-11-21

python installation of cx_Oracle and wxPython

I had some problems installing these two, but finally it worked, so I'll document the process.

Environment: win10 64-bit system, python3.7.8 , pip18

Download address: these two addresses are very slow to download, my download many times have failed, the back of the cell phone to download the transfer of computer

cx_Oracle: /project/cx-Oracle/#files

wx_Python: /project/wx_Python/#files

1. Install cx_Oracle.

The first installation used this file, this time the installation failed, recorded the error.

Step 1: Download the file, unzip it and put it in the package directory of the python installation directory: C:\Users\admin\AppData\Local\Programs\Python\Python37\Lib\site-packages

Step 2: Go to the appropriate directory to display the file path this place to enter cmd, you can also open the directory cd to this path, is for convenience.

Step 3: Enter the command 1:python build and then enter the command, the error will be reported as follows, ignore this command and execute the command install and then enter the command also reported the following error

c:\users\admin\appdata\local\programs\python\python37\include\(59): fatal error C1083: Cannot open include file: '': No such file or directory
error: command 'C:\\Program Files (x86)\\Microsoft Visual Studio 14.0\\VC\\bin\\' failed with exit status 2

Step 4: to solve the problem of reporting errors, most of the online search said to install the 2015 version of the runtime library, in fact, there has been a 14.0 + version, the back of the uninstallation, reinstallation, try a lot of methods, the results are still the same error, and here is no longer one by one instructions!

At this point I've given up and am going to install wxPython first

2. Install wxPython

Step 1: Download the file, as shown in the picture, this I downloaded this file with .whl extension.

Step 2: Go to the directory where you downloaded the file and open cmd, execute the command to install: pip installwxPython-4.1.0-cp37-cp37m-win_amd64.whl

The installation process and automatically download the two versions of the file to install, it should be installed this need to be installed on the basis of the two versions, the first version of the download succeeded and also installed successfully, the second version failed, many times to retry the failure of the cmd window a window are reporting errors in red.

This situation is in the automatic download of the file did not continue to download the situation, behind the direct cell phone download to the computer to install, (cmd window will have the file download path, inside the copy out to manually download can be), the installation fails, prompt pip version is not enough!

Step 3: according to the command prompted by the implementation of the upgrade pip (upgraded to version 20, the file according to the window of the link to get can be), here and encountered the problem of download interruptions, cell phone downloads to the computer to install the upgrade: command can not use it to give: pip install pip file, the installation fails, prompted by the lack of access privileges, this is a good solution: right-click to administrator identity to run!

Step 4: In the cmd window execute: pip install E:\python\Py\pypip upgrade file Because running cmd as an administrator can not switch the relevant path, we directly use the absolute path to execute the file, and finally upgrade pip success!

Step 5: The second version of wxPython that was not successfully installed in step 3 is now installed: pip installE:\python\Py\Version 2 filename.whlThe file was installed successfully.

Step 6: Install the wxPython file that you downloaded in step 1: pip installE:\python\Py\wxPython-4.1.0-cp37-cp37m-win_amd64.whlThe file was installed successfully.

Here wxPython was installed successfully, so I thought of the failed installation of cx_Oracle, because I followed the tutorial to install the .gz file, so here I choose the second whl file to install it again

3. Re-install cx_Oracle

Step 1: Download the file, as shown, this I download the second file .whl this file

Step 2: Install cx_Oracle:pip installE:\python\Py\cx_Oracle-8.0.1-cp37-cp37m-win_amd64.whl File installed successfully

At this point, cx_Oracle has also been successfully installed, to pycharm to try, all can be used!

PS: Python install cx_Oracle module

Installing the cx_Oracle module requires that you install Oracle and add the path to Oracle to your environment variables.

2. If you don't have Oracle installed, you need to download a file and add the path of the file to the path.

Even if cx_Oracle is installed, the module cannot be imported if Oracle is not installed and there is no path to it.

summarize

To this point this article on python install cx_Oracle and wxPython method of installation is introduced to this article, more related to python install cx_Oracle and wxPython content, please search for my previous articles or continue to browse the following related articles I hope that you will support me more in the future!