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 install a package for a specific Python version on Windows 10?

  • Thread starter Thread starter Naveen Reddy Marthala
  • Start date Start date
N

Naveen Reddy Marthala

Guest
I currently have Python 3.7.4(64 bit) and Python 3.6.6(64 bit) on a Windows 10 64 bit laptop with both versions in my system environment variables(path).

I previously only had 3.7 and installed 3.6 to use pocketsphinx, and now I want to upgrade PyAudio of my 3.6. doing pip install --upgrade pyaudio is upgrading the pyaudio of 3.7. So, how do i upgrade(or even install) packages of specific python versions on a windows machine?

Here's also what I've tried:
python-3.6.6 pip install --upgrade pyaudio,
python3.6.6 pip install --upgrade pyaudio,
python3.6 pip install --upgrade pyaudio and
pip3.6.6 install --upgrade pyaudio.
Yes, these may be stupid, but I was helpless.

EDIT 1:
I also run pip install --upgrade pyaudio in power shell by opening it in the directory where my python 3.6 is installed, which is(default installation directory for windows): C:\Users\--user-name--\AppData\Local\Programs\Python\Python36 like: this is what's happening and it's not working as you can see from the version, pip install would still install new packages for python 3.7
<p>I currently have Python 3.7.4(64 bit) and Python 3.6.6(64 bit) on a <strong>Windows 10</strong> 64 bit laptop with both versions in my system environment variables(path). </p>

<p>I previously only had 3.7 and installed 3.6 to use <code>pocketsphinx</code>, and now I want to upgrade <code>PyAudio</code> of my 3.6. doing <code>pip install --upgrade pyaudio</code> is upgrading the <code>pyaudio</code> of 3.7. So, how do i upgrade(or even install) packages of specific python versions on a windows machine? </p>

<p>Here's also what I've tried:<br>
<code>python-3.6.6 pip install --upgrade pyaudio</code>,<br>
<code>python3.6.6 pip install --upgrade pyaudio</code>,<br>
<code>python3.6 pip install --upgrade pyaudio</code> and<br>
<code>pip3.6.6 install --upgrade pyaudio</code>.<br>
Yes, these may be stupid, but I was helpless.</p>

<p><strong>EDIT 1:</strong><br>
I also run <code>pip install --upgrade pyaudio</code> in power shell by opening it in the directory where my python 3.6 is installed, which is(default installation directory for windows): <code>C:\Users\--user-name--\AppData\Local\Programs\Python\Python36</code> like:
<a href="https://i.sstatic.net/tw02R.png" rel="noreferrer"><img src="https://i.sstatic.net/tw02R.png" alt="this is what&#39;s happening and it&#39;s not working"></a>
as you can see from the version, <code>pip install</code> would still install new packages for python 3.7</p>
 

Latest posts

S
Replies
0
Views
1
Souvik Manna
S
S
Replies
0
Views
1
Shelling ford
S
Top