OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

How to make a 64bit Python interpreter safely available to a Virtualenv in PyCharm if only a 32bit Python version is installed on my machine?

  • Thread starter Thread starter lonyen11
  • Start date Start date
L

lonyen11

Guest
I have Python 3.8.1 as 32 bit version installed on a machine running Windows 10 Pro 64 bit. I am now using PyCharm and created a virtual environment (VE) using Virtualenv. From there, I only have access to one Python interpreter. Running

Code:
$ python

>>> import platform

>>> platform.architecture()

in the terminal inside the VE yields

Code:
('32bit', 'WindowsPE')

meaning that it is using the globally installed Python.

For my project in the VE, however, I need a 64 bit Python interpreter, as I need Tensorflow and most likely some other 3rd party libraries that might require such an interpreter. Following the official documentation I could install a 64 bit version globally. However, I am afraid that this might cause unforeseeable side effects, making one version get into the way of the other. Another solution might be fully uninstalling my 32 bit Python from my machine and installing a 64 bit version instead. However, posts like this and the likeliness of leftovers as discussed here have scared me off a little bit.

Is there a way to make available a 64 bit Python interpreter (version 3.8.1 would be fine) in such a way that is accessible for Virtualenv environments in PyCharm, just as my 32 bit version is currently, without causing trouble? I would really like to stick to Virtualenv instead of using Anaconda, Poetry or anything else.
<p>I have Python 3.8.1 as 32 bit version installed on a machine running Windows 10 Pro 64 bit. I am now using PyCharm and created a virtual environment (VE) using Virtualenv. From there, I only have access to one Python interpreter. Running</p>
<pre><code>$ python

>>> import platform

>>> platform.architecture()
</code></pre>
<p>in the terminal inside the VE yields</p>
<pre><code>('32bit', 'WindowsPE')
</code></pre>
<p>meaning that it is using the globally installed Python.</p>
<p>For my project in the VE, however, I need a 64 bit Python interpreter, as I need Tensorflow and most likely some other 3rd party libraries that might require such an interpreter. Following the official <a href="https://www.jetbrains.com/help/pycharm/configuring-python-interpreter.html" rel="nofollow noreferrer">documentation</a> I could install a 64 bit version globally. However, I am afraid that this might cause unforeseeable side effects, making one version get into the way of the other. Another solution might be fully uninstalling my 32 bit Python from my machine and installing a 64 bit version instead. However, posts like <a href="https://stackoverflow.com/questions/57328054/change-default-version-of-python-from-32bit-to-64bit">this</a> and the likeliness of leftovers as discussed <a href="https://stackoverflow.com/questions...remove-python-from-a-windows-machine#18430403">here</a> have scared me off a little bit.<br/>
<br/>
Is there a way to make available a 64 bit Python interpreter (version 3.8.1 would be fine) in such a way that is accessible for Virtualenv environments in PyCharm, just as my 32 bit version is currently, without causing trouble? I would really like to stick to Virtualenv instead of using Anaconda, Poetry or anything else.</p>
 

Latest posts

Top