[Tutor] Python3 install windows 10
Mats Wichmann
mats at wichmann.us
Mon Nov 2 18:16:45 EST 2020
On 11/2/20 3:50 PM, Paul Simon wrote:
> I have been having trouble installing python 3.9. I already have 2.7
> installed and running. Python 2.7 is installed in a directory under c:\
> but 3.9 is installed in an odd location under AppData?
That's the default location (AppData/Local/Programs/Python*) if you
select a user install, which I think is the default checkbox setting in
the installer; if you "install for all users" it goes to the root
directory, but that's not an ideal place because you probably then don't
have rights to modify it (e.g. install modules via pip), that's why
you'll normally get it in your own directory under AppData.
> Aside from
> having a unicode issue my script cannot find downloaded modules like
> seaborn and matplotlib. They have been imported with pip3 into python 3.9.
>
> Do I have to make a change to a path somewhere? Some instructions?
Well, failure to import something you know is installed is _always_ a
path problem. But probably they didn't install where you thought they
installed.
Instructions? General ones here:
https://docs.python.org/3/using/windows.html
Usually, if you get the Python you want working, then use that same
Python to install. So if "py" (the Python launcher) finds the Python
you want, then use:
py -m pip install seaborn
By the way, a bunch of modules that have binary bits haven't been made
available for 3.9 yet (that's normal for Python minor-version bumps).
For example:
https://pypi.org/project/matplotlib/#files
there are no "cp39" versions there yet. You may want to stick with 3.8
for a while longer.
>
> Where can I find info on adapting text from python 2 to unicode python3?
this is one of the best descriptions I've read:
http://python-notes.curiousefficiency.org/en/latest/python3/text_file_processing.html
More information about the Tutor
mailing list