Skip to main content

All Questions

Tagged with
-5 votes
0 answers
188 views

How to correctly install and set up path configurations for python and pip?

I have multiple versions of python and pip installed. Using python3 in the terminal runs python 3.9.6, whereas pip runs python 3.12.9; so, I can use pip3 to install a package (for example, newtworkx), ...
user30249683's user avatar
0 votes
1 answer
64 views

Error while finding module specification for 'virtualenvwrapper.hook_loader' (ModuleNotFoundError: No module named 'virtualenvwrapper')

I am using a MacOS machine using zshell and have suddenly been unable to use virtualenvwrapper. This was after having to accept a new user agreement for Xcode. Now, when I load a new terminal, I get ...
Nicole I.'s user avatar
0 votes
1 answer
166 views

Module could be found in debug mode in VS code but could not in build-in terminal

I have created a conda environment named "pino" by: conda create -n pino Then, I installed the python 3.8 and pytorch in pino. I did activate pino in the build-in terminal by conda activate ...
Jipeng Cui's user avatar
-2 votes
2 answers
131 views

Error message when trying to execute a .py file in macOS terminal (zsh)

I'v got a problem.. I've installed python through HomeBrew but when i try to execute a simple hello.py file by typing python3 hello.py it gives me this error message : /opt/homebrew/Cellar/[email protected]/...
MajesticND's user avatar
0 votes
3 answers
90 views

zsh: no matches found: MultiplicateLists(np.array([1,3,5,6,4,6,7,1,2,7]))

I would like to import a list in a python function and run the function from the terminal of Visual Studio Code. My function, that I called "MyFunction.py", and that I temporarily saved on ...
BostonPlummer's user avatar
0 votes
1 answer
107 views

Why are there multiple python versions available via homebrew, and how do they relate to package Installation?

I had a problem, which took me way too long to solve. Basically I coudn't import tkinter and kept getting import _tkinter # If this fails your Python may not be configured for Tk I finally found the ...
Damyan Myashkov's user avatar
-1 votes
1 answer
44 views

Calling `subprocess` in Python notebook has different `$PATH` than `!` shell

I am developing a wrapper class interactively in an IPython notebook. This wrapper class invokes a command line program written in java, and thus I need access to the same version of the java runtime ...
asimov's user avatar
  • 49
0 votes
0 answers
52 views

Conda Virtual Environment Display Issue in Terminal Prompt ~ZSH

I'm experiencing a display issue with my Conda virtual environment in the terminal . The environment name that is rendered strangely on the right side of each line is not correct i expect to show base ...
Muhammad Faizan Shah's user avatar
0 votes
0 answers
37 views

Must you "deactivate" homebrew to run conda?

Based on this post. I know the post says that it's a good idea to deactivate conda before running brew, but what about the opposite? I was wondering if there is anything you need to do to customize ...
user26013698's user avatar
0 votes
1 answer
1k views

When I run `poetry shell` on MacOS with ZSH shell, it gives me the "command not found" error

I'm using Poetry to manage Python dependencies, running on MacOS. I am trying to run the Poetry shell and have the commands work correctly in the shell. When I run poetry shell I get the following ...
r_2009's user avatar
  • 113
0 votes
1 answer
238 views

Why can't I access python from a conda environment?

I wanted to use python inside a conda environment. I was expecting that if I ran the command python then python would start up. What actually happened what that python was not found: see below. From ...
Martha's user avatar
  • 103
1 vote
0 answers
76 views

Autocomplete Fails for File Paths in Argparse Without Virtual Environment

I'm encountering an issue with file path autocompletion in my Python script that uses the argparse module with several nested subparsers. I have enabled autocompletion using argcomplete, but instead ...
Emanuele Alfano's user avatar
0 votes
0 answers
141 views

In macOS, how do I detect low data mode in command line or Python?

I want to write a script that executes only if the low data mode is turned off on the network adapter. But I can't find a solution on Google. Is it possible to write such the check in a script? I have ...
souser's user avatar
  • 21
1 vote
0 answers
30 views

How can i index search through current running MacOS terminal sessions in Python?

I'm working a project that involves using Python, and i need a way to check if a certain keyword is in a terminal session from a Python script, how could i do that? I wanted it to print "Very ...
Divided's user avatar
  • 11
1 vote
0 answers
95 views

python -V and pyenv versions show different python version

I got recommended to use pyenv to manage and install python versions. Until now I've installed python using sudo apt-get install python3. pyenv recommends using homebrew so I've installed it. But, ...
GeorgeMet's user avatar
  • 107

15 30 50 per page
1
2 3 4 5
20