pico
pico

Reputation: 1910

installing ActiveState Python 3.9 under windows 10/11

from Powershell Prompt I typed the following according to the installation instructions:

PS>
   & $([scriptblock]::Create((New-Object Net.WebClient).DownloadString('https://platform.activestate.com/dl/cli/AS700/install-latest.ps1'))) -c'state activate --default wmooreavista/Python-3.9.9-Windows'

OUTPUT of command:

• Preparing Installer for State Tool Package Manager...√ Done

State Tool Package Manager is already installed at C:\Users\wpmoore\AppData\Local\ActiveState\StateTool\release\bin\state.exe. To reinstall use the --force flag.

Running `state activate --default wmooreavista/Python-3.9.9-Windows`

█ Creating a Virtual Environment for your Project's Packages

✔ Project "wmooreavista/Python-3.9.9-Windows" Has Been Activated

Quick Start
───────────
• To add a package to your runtime, type "state install <package name>"
• Learn more about how to use the State Tool, type "state learn"


[wmooreavista/Python-3.9.9-Windows] C:\Users\wpmoore\Python-3.9.9-Windows>

Then I closed the window thinking python 3.9 was installed but when i search my harddisk I can't find the directory "C:\python3" and I can't find the executable "python3.exe" ... What gives? Also, why does it start a cmd.exe shell after installing python with a powershell command line? That's really confusing... how to start python3 after installing it using powershell command and closing the install command line windows?

Upvotes: -1

Views: 503

Answers (1)

pico
pico

Reputation: 1910

I found out that state.exe creates a batch file wrapper for python under:

$USERPROFILE\AppData\Local\ActiveState\cache\bin\python3.bat

So I guess that "$USERPROFILE\AppData\Local\ActiveState\cache\bin" needs to go into the PATH variable to use ActiveState Python from Windows 10 powershell...

From Powershell:

PS> cd $USERPROFILE

PS> Get-ChildItem -Path . -Include python*.bat -Force -Recurse | %{ $_.FullName}

Upvotes: 0

Related Questions