The end purpose of using Python3.x is because - as far I understand - in order to be able to use cx_Oracle, I need to use Python with Oracle so that three components must all be inplace and be of the same version:
Part 1: Anaconda Python 3.5 (64-bit)
Part 2: cx_Oracle for Python 3.5 (64-bit)
Part 3: Oracle 64-bit Instant Client (64-bit)
I just updated Python to 3.5.2. When running my script, this is confirmed:
3.5.2 |Anaconda 4.2.0 (64-bit)| (default, Jul 5 2016, 11:41:13) [MSC v.1900 64 bit (AMD64)]
When using the Python console, I have an option:
Anaconda2 (C:\Users\Pymat\AppData\Local\Continuum\Anaconda2\python.exe
C\:Python27\python.exe
Anaconda3 (C:\Users\Pymat\AppData\Local\Continuum\Anaconda3\python.exe
I can't get the Anaconda versions to work, since I get the following error messages:
'Create Interactive Console' has encountered a problem.
Error initializing console.
So I'm forced to use C\:Python27\python.exe
However when switching to the Python console this is confirmed as a different version (as expected, since Python27 is now used. See above):
import sys
print sys.version
--> 2.7.13 (v2.7.13:a06454b1afa1, Dec 17 2016, 20:53:40) [MSC v.1500 64 bit (AMD64)]
I'd like to retain consistency in the versions, so I know that Python 3.5 is being used, in order to attain compatibility ready for successful use of cx_Oracle
. Where am I going wrong?
---- Update ----
I deleted all versions of Python, and also the versions in Anaconda (I did a simple deinstall), then reinstalled via Anaconda, first v2.7 then v3.6, so now I have two interpreters pointing to the python.exe in the Anaconda packages (2 & 3). I can run my script using the Python v3 interpreter and the version confirmed is now:
3.6.0 |Anaconda 4.3.0 (64-bit)| (default, Dec 23 2016, 11:57:41) [MSC v.1900 64 bit (AMD64)]
However, I cannot open the Python Console and still get the same error message as above:
'Create Interactive Console' has encountered a problem.
Error initializing console.
In cmd, in the python
shell the version is Python2.7.13. The command py
doesn't work anymore. I don't get the inconsistency with this.