All Questions
19
questions
2
votes
1
answer
522
views
ffmpeg-normalize not working in Python
I have ffmpeg-normalize installed through pip3
It seems to work from the terminal but I need to run it through python subprocess.
Everytime I try to run it the error says:
/bin/sh: 1: ffmpeg-normalize:...
4
votes
1
answer
5k
views
"/usr/bin/python: No module named virtualenvwrapper" error when opening terminal
I'm using Ubuntu 20.04 (clean installation, I did not upgrade from a previous one) and when I open a new terminal (simply by Ctrl+Alt+T), it always starts with the output shown below (also shown in ...
0
votes
1
answer
13k
views
How to change python3 path pointer?
I am using Ubuntu 20.04.2 LTS with python version 3.9.5 installed.
When I type which python in the terminal, it shows /usr/bin/python which is the default path for python2 (2.7 in my case).
But when I ...
1
vote
0
answers
81
views
Pip3 can't be "loaded" as a library/package, no matter what I try, after upgrading to Ubunta 18
The question was on Stack Overflow, but it is too Unix/Ubuntu-sepcific.
My problem (see below where I have earlier posts) is that I can't get pip (or, more accurately, pip3) to load or work. APT get ...
0
votes
2
answers
329
views
After installing python3.7, virtualenv and pip on newly installed 20.04, terminal window will not open
I needed to install python3.7, virtualenv, and pip. After doing so, I added ~/.local/bin to $PATH. I echo'd $PATH and saw that it added .local/bin and then closed the terminal app. Terminal will no ...
-2
votes
1
answer
4k
views
Default python path - bash: /usr/local/bin/python2.7: No such file or directory
When I write python on terminal get an error
bash: /usr/local/bin/python2.7: No such file or directory
but if I use in terminal python2 or python3 it's working perfectly
How to solve this?
Please ...
0
votes
1
answer
2k
views
How to run python script from computer and do to the file in flash drive
I have Python script that will read file "Customer_List" ,operate it, and write it back to Customer_List again.It's running well on Windows but I want to know how to run it on Ubuntu I need to run ...
-1
votes
1
answer
817
views
python get the correct path for a file
I want to write out the path of zipfiles, which are located in "zips" folder. Here is my code :
import os, zipfile
directory = 'zips'
for filename in os.listdir(directory):
if filename.endswith(...
0
votes
1
answer
353
views
If I compile and install my own Python from source and install packages, will it affect the system Python installation?
Say I compile Python 3 from source, configuring it with --prefix=$HOME/.local and installing it.
Since $HOME/.local is in my path, and is preferred, now when I type python3 in my shell, I get my ...
2
votes
1
answer
6k
views
opencv python fails to load image
I am following this tutorial
The suggested code is:
import numpy as np
import cv2
# Load an color image in grayscale
img = cv2.imread('messi5.jpg',0)
cv2.imshow('image',img)
cv2.waitKey(0)
...
9
votes
1
answer
18k
views
Pytest is in PATH but not found
I've installed pytest for python testing, but I get No such file or directory error when simply trying to run it from a project folder.
It's in a location that should be accessible through the PATH ...
0
votes
1
answer
60
views
putting a new directory in path [duplicate]
I am new to Ubuntu and am using the Anaconda platform to develop in Pyton and have a directory in /home/myPython/ containing .py files.
I would like to type a file name from the terminal (E.G. ...
1
vote
1
answer
2k
views
pip install --user means users cannot run application from Dash or terminal
I'm the developer of a Python GUI application. I'd like users of my application to be able to install the application using pip because not all of its dependencies have made it into Debian yet, and I ...
1
vote
1
answer
27k
views
Reset python path
I installed canopy and set it to be my default python environment, but I'm having a problem with the software. Now it is:
$ which python
/home/renanpc/Enthought/Canopy_64bit/User/bin/python
But I ...
0
votes
1
answer
1k
views
Added wrong path to $PATH variable but can't find old varaible to delete it
I'm trying to install virtualenv and virtualenvwrapper to set up and IDE for Python, following a tutorial for this on Ubuntu I accidentally entered the wrong path to the virtualenvwrapper. When I try ...
1
vote
1
answer
899
views
ImportError: Ipython requires Python version 2.7 or 3.3 or above
I am trying to use ipython notebook. But when i execute ipython notebook, it gives me below error.
I have both ipython 2.7, and 3.3.
But even than it can not detect ipython 2.7.
How can i append ...
3
votes
1
answer
4k
views
How to give a path argument to os.walk() Python function for my Home directory?
I want to use os.walk() in Python and I have to give a path argument to it like os.walk(path). In Windows, I do it as os.walk(c:\\).
What os.walk() does is it searches the whole C: directory. In ...
94
votes
5
answers
833k
views
How to find python installation directory on Ubuntu
I have just migrated from Windows environment. I have installed Python 3.2 in a separate directory. How can I get the python installation path in Ubuntu shell?
Is there any way I can let the shell ...
2
votes
2
answers
15k
views
Path to user desktop using python
This may seem stupid to a few, but I was wondering if there was some code to find out the operating system of the present user, and then the path to his Desktop using python.