106 questions
2
votes
1
answer
221
views
Error when opening Jupyter notebook from cmd/power shell (Windows)
[Problem solved] When I try to open jupyter notebook in cmd/power shell I get the following error:
Fatal error in launcher: Unable to create process using '"c:\users\NAME\appdata\local\programs\...
0
votes
1
answer
116
views
Unable to install ydf on Docker on Python image
I want to use the ydf package in a docker image, but every time I try to build Docker Image of Python with ydf package I get this error:
1.699 ERROR: Could not find a version that satisfies the ...
0
votes
1
answer
149
views
Install Python package (jpeg2dct)
I couldn't solve it any other way, so I installed Linux and use the libraries there. 😐
I would like to install this Python package, but I am having trouble.
I don’t really understand what I’m doing ...
2
votes
1
answer
2k
views
Docker script installing python 3.9 started failing recently
We have a solution deployed on AWS where an EC2 instance uses docker files to build images for different components. One of those components has a docker script we haven't changed in over a year that, ...
2
votes
0
answers
104
views
Unable to use PIP within a python virtualenv, but works just fine globally
I have python 3.12 and therefore pip installed on my Mac. They were installed from python.org, NOT homebrew, however because of previous homebrew installations there seems to be an error. Whenever I ...
1
vote
0
answers
193
views
Is there a way to isolate a specific installed library into my project and compile it with the rest of a project?
I have multiple python projects and when I compile one of them the using Python to Exe, I end up compiling all the libraries that I have downloaded. I also noticed that in my project, even though I ...
0
votes
0
answers
30
views
tensorflow_object_detection_api installation incomplete?
I need to import DetectorAPI from tensorflow_object_detection_API. But there seems to be an installation problem.
I get the no module found error, even though i just installed it.
I installed it using ...
-1
votes
1
answer
1k
views
OpenAI pip error while installing (Rust manager issue?)
I just tried to intall openai on my pip venv, and I got this error.
My pip is up to date and I tried on 2 different environments.
My command that i entered was:
pip install openai
I wanted to install ...
0
votes
1
answer
261
views
Can I install conda packages with pip? [duplicate]
I want to install a package on macOS, which can be done by
conda env create -f environment.yaml
conda activate <package>
but I don't want to install conda and am looking for an alternative to ...
0
votes
0
answers
3k
views
how to remove one of the python installed?
i have 2 installed python, 3.10.12 and 3.12.0, i want to choose 3.12 and remove the 3.10, but i have the problem when remove it
i ran this command
sudo apt-get remove python3.10
and this what i got
...
-1
votes
1
answer
76
views
Multiple python versions causing pip failure
See Photo1. On executing --version, which and where command to python and python3, I discover to have python linked to ver 3.11 and python3 linked to 3.9.
See Photo2. I search all python related paths ...
0
votes
1
answer
294
views
Execute script that uses my local package - ImportErrors
My project was up-and-running for a while running in a kubernetes container... until, I decided to "clean-up" my use of the sys.add calls that I had at the top of my modules. This included ...
0
votes
2
answers
2k
views
Can't use apt-get on Ubuntu 16.04 VM cuz missing python3
I can't seem to find a solution for this. I need sudo apt-get install <package> to work because sudo apt-get -f -qq install -y doesn't work.
Here is the log:
ubuntu@ip-10-8-0-145:~$ sudo apt-get ...
0
votes
1
answer
975
views
What is the correct way to install dronekit on windows and ubuntu?
I am new in this. I've been having trouble installing dronekit for the past few days.
I followed one of the tutorials on YouTube where on Windows using python version 3.6.0 I managed to install ...
1
vote
2
answers
1k
views
mysqlclient install error - ld: library not found for -lzlib
I'm trying to install mysqlclient on MacOS from requirements.txt of a Python(3.8) project. I created a virtual environment and this is the output while trying to install it:
ld: library not found for -...
-3
votes
1
answer
637
views
I can't install any new python module [duplicate]
WARNING: Ignoring invalid distribution -ip (c:\users\91731\appdata\roaming\python\python38\site-packages)
WARNING: Ignoring invalid distribution -rllib3 (c:\programdata\anaconda3\lib\site-packages)
...
-1
votes
1
answer
595
views
Issue installing python 3.6.8 on Mac M1
I'm trying to run an old app that requires python =3.6.8 on Mac M1 machine with Monterey OS X 12.6.1.
I've installed pyenv-virtualenv and pyenv and successfully installed python 3.6.15. However, when ...
-2
votes
2
answers
2k
views
Install python in a user defined location in Mac OS
How would I install python3.9 in a custom or user-defined location?
Ideally if I say brew install [email protected], python gets installed in /usr/local/bin/ but I need to have this installed in a different ...
1
vote
0
answers
232
views
"python setup.py bdist_wheel did not run successfully" Installing pandana
The problem:
Building wheels for collected packages: pandana, tables
Building wheel for pandana (setup.py) ... error
error: subprocess-exited-with-error
× python setup.py bdist_wheel did not ...
-1
votes
1
answer
201
views
Does package management of a WinPython installation depend on the machine?
I have a WinPython installation on a network server that I can access from two different machines. As the installation is portable, I would expect the packages versions to be the same whether I use ...
0
votes
1
answer
606
views
python, python3, python3.7 files don't work in a venv (can't be activated)
I am trying to run some code inside a server. In that server, we use docker images to create notebooks inside directories, with commands like:
docker run -it --gpus "device=1" -p 8886:8886 -...
0
votes
1
answer
689
views
Shipping Python interpreter with C++ project
Problem description:
I have a Visual Studio 2022 C++ project that involves live python script interpretation. Naturally, I need a valid Python installation to do this. However, I intend to ship this ...
1
vote
0
answers
2k
views
How to uninstall a python version which was installed from source (Ubuntu)?
I'm on Ubuntu 22.04.1 which comes with its own python3.11 and have just installed an alternative Python version (3.7.9) from source (I'm not able to use apt for this Python version), doing the ...
2
votes
0
answers
188
views
"Cascading" virtual Python environnements
I am working with Python on an offline Red Hat Enterprise Linux machine, mainly using Data Science and AI libraries.
As Anaconda is no more an option, I would like to install a bunch of libraries ...
2
votes
2
answers
3k
views
Terminal shows wrong Python version as default
Typing Python on my Terminal shows
Python 3.9.5 (default, May 4 2021, 03:36:27)
[Clang 12.0.0 (clang-1200.0.32.29)] on darwin
Type "help", "copyright", "credits" or &...
0
votes
0
answers
359
views
Operation not permitted on linux-rt
I need to install python 3.9 on an embedded device so I used USB drive to not consume much storage space on the board. Yet, whenever I start installing usingmake install
I get this error :
This is ...
1
vote
1
answer
531
views
setuptools post-install: get all packages installed to check versions
In Post-install script with Python setuptools, this answer shows how to make a post-install command.
I want to make a post-install command that checks for a version matchup between sub-packages from a ...
2
votes
2
answers
13k
views
How to install Python from .tar.xz using windows command Prompt
I wanted to install Python 3.5.5, I only found compressed files as shown below.
when I wanted to intall it using
pip install Python-3.5.5.tar.xz
or
pip install Python-3.5.5.tgz
I had these errors
-2
votes
1
answer
47
views
Command not found after installing the python on Macbook Air [closed]
I am installing python on my MacBook Air, when I run python on the terminal then I am getting
command not found
I have tried the below steps to install the python
Downloaded python 3.10.5 from the ...
0
votes
1
answer
4k
views
Python 3.10 [Errono 2] No such file or directory - Python 3.10 not being recognised in terminal [closed]
I installed python3.10 on my mac. I can see it under applications but when I type python 3-- version it returns the following error.
MacBook-Air:~ User$ python3 -- v
/Library/Frameworks/Python....
0
votes
1
answer
3k
views
After Anaconda installation, python gets recognized in cmd launched by Anaconda Navigator only - Does it mean python can be used within Anaconda?
Learning from this post , I understand that installing Anaconda on Windows 10 PC will automatically install Python compiler, so we don't need to install Python separately after we install Anaconda. ...
0
votes
1
answer
8k
views
Why is Python Installation in "Library" directory macOS?
I'm on a new Mac and installing Python. I believe I reinstalled my Python using Homebrew. The path, however, is unusual to me, and I'm wondering why it is located here:
/Library/Frameworks/Python....
0
votes
0
answers
86
views
On macOS the Python 2.7 should not be used/upgraded. Is this true for the Python 3 as well?
I'm aware that Python 2.7 should not be used or upgraded as macOS comes with Python 2.7 for some pre installed software packages.
My question plainly is: Should the Python 3 version that comes with ...
0
votes
1
answer
583
views
Error during cdlib python package installation
I am trying to install cdlib package in python but some error is occurring. Please help me to solve this problem. The error is given below
ERROR: Command errored out with exit status 1:
ERROR: ...
0
votes
0
answers
349
views
Can't find installation configuration file
I aim to use the 'drama' python package [link].
I installed 'drama' using PIP (when tried to instal using PIP3 I get an error that pip3 is not defined). I am running Python 3.7 in Spyder.
The package ...
2
votes
2
answers
2k
views
Having trouble importing RLGlue: "No module named 'rlglue.rl_glue'"
I was going through an Reinforcement Learning Course and wanted to try running the code locally. I installed RLGlue with pip install rlglue from here
But then when trying to run the code:
from rlglue....
1
vote
1
answer
4k
views
I've installed python-3.9.1 and pip but while running the command python3 -V got the result as python 3.6.9 how do I get python version 3.9
sudo apt-get install python3.7
Reading package lists... Done
Building dependency tree
Reading state information... Done
python3.7 is already the newest version (3.7.10-1+bionic2).
0 upgraded, 0 newly ...
2
votes
1
answer
1k
views
Install Python and add to path automatically with just cmd
Is there any way to download and install and add to path Python automatically with just one command or just series of commands with bat file?
I have tried with downloading and installing with ...
0
votes
1
answer
114
views
Python Package Install- identify dependent packages [duplicate]
My python server does not have access to Internet so I have to send packages through email and then pip install pointing to these packages.
Problem is it fails because some of the dependent package, ...
0
votes
1
answer
406
views
How to remove anaconda from path in mac in order to pip install?
MacBook Pro already had one python 3.8.2 installation. Then I installed anaconda which has python 3.8.5 and installed python 3.9.4 from python.org.
Pip3 is installing packages to anaconda, not for 3.9....
3
votes
2
answers
15k
views
How to update python to latest version and set as default
I am currently on ubuntu 18.04.
My default python version is Python 3.7.9
I wanted to upgrade it to Python 3.9.2 and set it as default python version
How do I do that ?
0
votes
1
answer
157
views
When building python from source how to get rid of abs_srcdir & abs_builddir string in output files
I'm trying to build python from source and using the prefix option to control the target directory where it gets installed.
After successful installation, in some files in the target directory I see ...
1
vote
1
answer
7k
views
How to build and install a Python package locally without uploading to PyPI? [closed]
I created a small Python project using a project template. Now I would like to configure the project to be locally installable.
When I run the command:
$ python3.8 -m pip install fdroid_build_checker
...
3
votes
3
answers
3k
views
Locally compiled libffi files not getting picked up while recompiling python 3 package
In a situation where I need to locally Install Python 3 and some related packages for enabling the Tkinter setup and use openpyxl to read/write .xlsx files using GUI setup.
First I installed the ...
1
vote
0
answers
54
views
Updating Ubuntu updates python versions?
I am currently running ubuntu 16.04, I have a multiple versions of python3 installed in my system. They are kind of messed up with failure while building these versions. I was earlier planning on ...
-2
votes
1
answer
3k
views
Should I pip install python inside virtualenv?
I need python3.6 for tensorflow installation, so I downloaded python3.6.12.tar. And I found that I should pip install tarfile. However, in this case it is an older version of python. FYI, In my ...
2
votes
0
answers
1k
views
How can i find or install libpython3.6m and python3.6m?
I just freshly installed Ubuntu16.04 and i noticed that the pip3 support for Python3.5 was dropped.
So i installed Python3.6 with the deadsnakes repository and created an alias so that when i type in ...
2
votes
2
answers
3k
views
Python Package not Found when Trying to Install on Anaconda Powershell
I am trying to install PyPDF2 on Anaconda via the Anaconda Navigator to be used with JupyterLab. I am faced with the following error:
(base) PS C:\Users\luke.xuereb> conda install PyPDF2 ...
0
votes
1
answer
4k
views
What is the best way to install python 3.7.7 as a user (locally) without sudo or wget?
I'm trying to install python3.7.7 on a remote server (Mac OS X). However, I have no sudo privileges nor I can use wget command. Would someone know the best way to install this python version and pip3 ...
0
votes
0
answers
51
views
Why does repair python return "Can't write to file" even though i have access to the specified directory? [duplicate]
Something python-related wasn't working properly (sadly don't remember what), so I ran the "Repair python" tool, but about halfway it returned:
"Error writing to file:"
C:\Users\...