Re: Pip installs to unexpected place

2025-04-16 Thread Thomas Passin via Python-list
On 4/15/2025 5:38 PM, rbowman via Python-list wrote: On Tue, 15 Apr 2025 14:12:19 -0400, Thomas Passin wrote: On Linux, at least, it's standard for pip to install into the user's site-packages location if it's not invoked with admin privileges - even without --user. Pip will

Re: Pip installs to unexpected place

2025-04-17 Thread Thomas Passin via Python-list
On 4/17/2025 4:58 AM, Roel Schroeven via Python-list wrote: Op 15/04/2025 om 20:31 schreef Mats Wichmann via Python-list: To be clear: you do not have to activate a virtualenv to use *Python* from it. If you just call the python by the path it's in, it figures everything out (and sets some vari

Re: Pip installs to unexpected place

2025-04-15 Thread Thomas Passin via Python-list
On 4/15/2025 12:43 PM, Friedrich Romstedt via Python-list wrote: Am Mo., 14. Apr. 2025 um 01:14 Uhr schrieb Jonathan Gossage via Python-list : I am using *Python 3.13* in a virtual environment under *Ubuntu Linux 24.04* . [...] Instead, it was installed into the site-packages directory in

Re: Pip installs to unexpected place

2025-04-15 Thread Thomas Passin via Python-list
On 4/15/2025 3:41 PM, dn via Python-list wrote: Various responses have been provided but the OP has not yet replied on- list (as verified by Archive). Is this an error with the list-processor or have some posts been sent to one person only (using Reply instead of ReplyList)? There are always

Re: Pip installs to unexpected place

2025-04-14 Thread Thomas Passin via Python-list
On 4/14/2025 6:20 PM, Keith Thompson via Python-list wrote: Thomas Passin writes: [...] To activate a venv, you have to source its activate script, which is in the venv. First you have to mark it as executable. Then you source it - source ~/venv/gf4/bin/activate [...] No, you don't ha

Re: Pip installs to unexpected place

2025-04-14 Thread Thomas Passin via Python-list
On 4/14/2025 6:20 PM, Keith Thompson via Python-list wrote: Thomas Passin writes: [...] To activate a venv, you have to source its activate script, which is in the venv. First you have to mark it as executable. Then you source it - source ~/venv/gf4/bin/activate [...] No, you don't ha

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-08 Thread Thomas Passin via Python-list
On 3/8/2025 5:29 AM, Praveen Kumar via Python-list wrote: Hi Python community and members, I hope this email finds you well, I want you to be assisted in resolving this following issue. kindly look at the below concern, """I’m running into an error where I get a 'This app can’t run on your PC'

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-09 Thread Thomas Passin via Python-list
On 3/8/2025 10:47 PM, Praveen Kumar wrote: Hi Thomas and team, It's worked In non-admin privileges after put the file in path at the first on environmental path variables, but with admin privileges it doesn't work though. Showing same error, as I mentioned earlier. If the path ha

Re: "Getting 'This app can’t run on your PC' (Access Denied) error when running Python or checking version in CMD on Windows 11"

2025-03-09 Thread Thomas Passin via Python-list
On 3/9/2025 3:16 PM, Gilmeh Serda via Python-list wrote: On Sat, 8 Mar 2025 15:59:51 +0530, Praveen Kumar wrote: "C:\Users\Bharath\AppData\Local\Programs\Python\Python313\python.exe" Is that an approved location for executables? Yes, that's where a python.org install normally goes. If you a

Re: backslash in triple quoted string

2025-05-13 Thread Thomas Passin via Python-list
On 5/8/2025 2:05 AM, Left Right via Python-list wrote: Also, it appears that the change linked above is a lie: https://docs.python.org/3/reference/lexical_analysis.html#grammar-token-python-grammar-longstringitem According to the grammar, any character can follow backslash in a valid Python pro

Re: Dynamic classes

2025-05-19 Thread Thomas Passin via Python-list
On 5/19/2025 5:49 PM, Mats Wichmann via Python-list wrote: On 5/19/25 09:51, Jonathan Gossage via Python-list wrote: I have created a dynamic class using the type() function: x = type('MyFlags', (), {'Flag1': 1, 'Flag2': 2, 'Flag3: 4, ' '__init__' : __init__}) The new class is there, and the c

series.py, cannot import series from pandas

2020-11-28 Thread A. M. Thomas [PETech MIET MBA]
Kindly guide on how to solve this problem from Python3.9 with pycharm. See the below import numpy as np import pandas as pd from pandas import series object = series([5,10,15,20]) print (object) C:\Users\THOMAS\AppData\Local\Programs\Python\Python39\python.exe C:/Users/THOMAS/PycharmProjects

Re: series.py, cannot import series from pandas

2020-11-28 Thread A. M. Thomas [PETech MIET MBA]
Spot on!! Thank you very much, am back on track with your aid On Sat, Nov 28, 2020 at 9:23 PM MRAB wrote: > On 2020-11-28 15:59, A. M. Thomas [PETech MIET MBA] wrote: > > Kindly guide on how to solve this problem from Python3.9 with pycharm. > See > > the below > > &g

Unable to read .xlsx file using pandas

2020-12-03 Thread A. M. Thomas [PETech MIET MBA]
Kindly help manage read .xlsx files using pandas, thank you import numpy as np import pandas as pd from pandas import Series, DataFrame excelfile = pd.ExcelFile('C:\Users\THOMAS\Documents/Hash Analytics Internship - DemoS2.xlsx') dframe = excelfile.parse('Sheet10') print

<    34   35   36   37   38   39