Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [python3]

The tag has no usage guidance.

0
votes
1answer
54 views
+50

Cant change python interpreter in Visual Studio Code on Mac

In my console (iterm2) which python gives /Users/anders/anaconda3/bin/python In Visual Studio Code's built in terminal which python gives /usr/bin/python Since I want to use anacondas python ...
0
votes
0answers
11 views

python files list, and add if condition to isolate envi. based on the filename.

We have two files with the below names in the current working directory; logic-dev-east.txt logic-dr-east.txt I want to list files ends with .txt and add an if condition to print a test message ...
-2
votes
0answers
26 views

How to fix Anaconda error?

I have been using Anaconda for my python course and I am unable to open Anaconda from the terminal. The command that I use to open Anaconda is:- anaconda-navigator When I run this command, the ...
2
votes
0answers
30 views

Upgrading Python3 Without Breaking Access to lib Folder

Upgrading Python3 package is always a big pain for me. Every time I upgrade from one version, e.g. 3.7.0, to another, e.g. 3.7.1, my python script loses access to my /usr/local/lib/python3.7/site-...
0
votes
0answers
23 views

Find a file recursively using python [migrated]

I have the below files located at some location in RHEL machine. temp_file2.txt temp_file3.txt Looking for a python script to find above files recursively in all directories(I used a wild card, but ...
0
votes
0answers
21 views

Linux Mint cannot launch or remove IPython3 through software manager

I tried to launch ipython3 from Software Manager, but got the following errors, There seems to be a programming error in aptdaemon. This is the software that allows you to install/remove software and ...
3
votes
0answers
37 views

how to use 2 framebuffers (/dev/fbx) to display gui and video frame at same time using pygame?

I am working on zybo-7000 and Debian Jessie for my project. I have to make one window with GUI and in the same window, I have to make a small window for the video frame. (please see the picture) I ...
1
vote
1answer
84 views

site-packages directory not found after installing pip3 with apt-get in Ubuntu WSL

I installed python 3 and pip into in Windows System for Linux shell, but it appears I have to find and specify site-packages directory manually if I want to run any python package executables. The ...
2
votes
1answer
1k views

How to change python default version from 2.7 to 3.7 on RHEL 7

How to change python default version from 2.7 to 3.7 on RHEL 7. Installed python on RHEL7 virtual machine by following this https://tecadmin.net/install-python-3-7-on-centos/ When I check python ...
1
vote
1answer
684 views

CentOS python3 package difference between python36 and python36u

I'm seeing 2 packages for Python 3 with the same name, when using search: $ yum search python36 And I'm not sure what's the difference between them? Why have 2? python36.x86_64 : Interpreter of the ...
2
votes
0answers
74 views

Issue setting environmental variable in tmux and screen

Whenever I use Tensorflow (a python library) from within a tmux or screen session, I have to manually change the environmental variables. Specifically, I have to type export PATH blah blah blah and ...
1
vote
0answers
89 views

Why does my serial port give a response without a loopback cable?

I'm new to using serial ports, and I have a loopback cable for serial on a Centos 7 machine. I have something in python that tests the port, but I've found that the program returns the expected ...
-1
votes
1answer
733 views

No space left on device (Ubuntu 16.04.5)

I'm really having difficulties understanding and finding out what is eating the space on my Ubuntu instance on Dreamcompute. I've installed Odoo 11 (ERP platform running on python). It works ok for ...
1
vote
1answer
41 views

How to run my compiled python not the system installed one

I have compiled python3.6.5 from the source and linked it to my compiled openssl as the following: export LDFLAGS="-L/usr/local/openssl/lib/ -L/usr/local/openssl/lib64/" export LD_LIBRARY_PATH="/usr/...
0
votes
1answer
903 views

Can't install python3 on Ubuntu 18.04

I fresh installed Ubuntu 18.04. I want to install python on it so I can run flask on it, but for some reason every time I run sudo apt install python3-minimal I keep getting these results: ashoms@...
-6
votes
1answer
187 views

Cannot import Python module in terminal [duplicate]

I am using Kali Linux, and trying to run some Python3 code. But it always gives me such an error log. However, latter I get out of that directory and navigate to my home directory, it works again. ...
0
votes
1answer
451 views

cron job to run under conda virtual environment

I have a Anaconda Python Virtual Environment set up and if I run my project while that virutal environment is activated everything runs great. But I have a cronjob configured to run it every hour. I ...
1
vote
1answer
2k views

When I use ansible module expect, I get this msg: The pexpect python module is required

Some code from yml file: - name: --- run /opt/installer/bin/install.sh --- expect: command: /opt/installer/bin/install.sh responses: 'Are you installing the application at the ...
0
votes
1answer
186 views

Can't import tkinter in python2 on manjaro linux

I installed tk-8.6.8.3 using pacman and I can import tkinter in python3 but not in python2. There doesn't seem to be a separate package for tkinter for python2 in the repositories. How do I get ...
0
votes
1answer
47 views

Do I really need to use nohup? [duplicate]

I would like to let run my script on background on my server. I red about nohup. I have my script.py. I run it like this: python3 script.py& It runs on background even when I close terminal. The ...
0
votes
1answer
477 views

PYTHONPATH problem in cron

I have been trying to automatically run a Python script with cron, to understand PATH. First I try with the user crontab: crontab -e I set up crontab like this: PYTHONPATH=/home/dpa/anaconda3/bin/...
0
votes
1answer
629 views

How to install python3 on a remote server without root access - linux

I have inbuilt python 2.7 and pip. I am wondering if there is anyway I can install python3 and then make a virtualenv using python3.
1
vote
1answer
508 views

$PYTHONPATH and sys.path don't seems to match

I want to add a folder permanently to sys.path but it doesn't work. On my Debian Stretch, when I execute : $ echo $PYTHONPATH it looks empty In the same time, when I print the content of sys....
1
vote
0answers
280 views

Compiling static Python 3.6.5 binary for ARM

I'm trying, on Debian 9.4 x64, to compiling static Python 3.6.5 binary for Android (so arm32, arm64, ...). I'm not sure of which library using to build Python 3.6.5 for arm and mips processors, for ...
2
votes
0answers
72 views

How can I generate a narrowband spectra from command line?

Is there a Linux command line tool to generate energy averaged narrowband spectra using the Hann window? I would like to do a spectra from audio from wind turbines. The specs says the following: The ...
1
vote
1answer
3k views

Cannot run python file, asks to relink libraries [closed]

I'm trying to run a python file, but it doesn't allow me to, showing an error: python3: Relink `/lib/x86_64-linux-gnu/libudev.so.1` with `/lib/x86_64-linux-gnu/librt.so.1` for IFUNC symbol `...
0
votes
0answers
40 views

Does libcontainer have a Python binding?

I need to work with containers that are created and operated through runc and thus libcontainer. These containers are not Docker containers. These containers are not visible to Docker, and are also ...
0
votes
0answers
49 views

Python script and the socket syntax error

Someone please help, not sure why this error is getting ./chat.py: line 6: syntax error near unexpected token `(' ./chat.py: line 6: ` sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)' ...
0
votes
0answers
220 views

Pip3 broken on kubuntu 17.10 because of PyInstaller?

So, I'm trying to use pip3 to install packages. It worked fine yesterday, but for some reason it won't work now. The package python3-pip is installed, but when I try to run pip3, it tells me to ...
1
vote
1answer
354 views

Creating a tarball from named pipes using tar or python's tarfile module

I didn't realize this would be so difficult. I'm just using tar. I have two pieces of data, one's a large payload of pcap data, the other is some additional metadata in the form of a python pickled ...
0
votes
1answer
172 views

opening pgadmin4 with one click in ubuntu gnome

I wanted to run pgadmin4 (needs a browser to run) from a gnome menu icon. It then should open in firefox. The following works, when I open it twice. Entry in /usr/share/applications/pgadmin4.desktop:...
0
votes
0answers
113 views

Saving output of fig.show() using matplotlib + Python

The commands: plt.show() and plt.savefig() use different engines to render the plots. See matplotlib savefig() plots different from show() for details and how to tweak savefig to match the result of ...
1
vote
1answer
315 views

Cannot install pyqt5

I'm trying to install pyqt5 and I'm getting the following error : $ sudo pip3 install pyqt5 Collecting pyqt5 From cffi callback <function _verify_callback at 0x7fbdc777f2f0>: Traceback (most ...
3
votes
1answer
2k views

Install Python 3.6 on Debian8 Jessie

Debian8 comes with Python 3.4, but I need to install 3.6 version. I wonder is it possible at all? Cause I failed so many times. I have tried options mentioned in (How to install Python 3.6), but for ...
1
vote
0answers
24 views

How to install package in 86 hosts in the same time (RHEL)? [duplicate]

I would like to install python3 and python3.4 in my office servers. There are 86 hosts and i am confused how i do that in the same time. In this time, i found my solution like this pssh -h host_86....
0
votes
1answer
796 views

Updating the SQLite version used by Python 3 on CentOS 7

I've installed Python 3.6 on a Centos 7.4 box, and need an updated version of SQLite (I'm using some new features). The SQLite version that comes with it is very old: 3.7.17. How is this done? On ...
0
votes
0answers
35 views

integrating notify inside unattended-upgrade doesn't work

I'd like to integrate inside U-U python program a DE notification. First of all I tried notify2 from python3 command line and that's OK. It works: $ python3 Python 3.4.2 (default, Oct 8 2014, 10:...
0
votes
3answers
786 views

Command 'command' not found in python subprocess

Using the command command in the following python script is not successful: import subprocess subprocess.run(["command", "-v", "yes"]) and results in Traceback (most recent call last): File "...
0
votes
1answer
189 views

pip3 - 'not a supported wheel on this platform' error

I am trying to install SIP through pip3 (which is required to install PyQt5). pip3 search SIP show that there is a package named SIP (4.19.8) - extension module generator for C and C++ libraries. ...
1
vote
0answers
50 views

Nice does not affect utilization?

I am learning about the CFS in Linux. So i decided to see how the nice value can give a lower priority for background (i.e. nice) processes. I ran two CPU processes: taskset 01 python3 loop.py in two ...
0
votes
0answers
34 views

How to always print something in last line of terminal? [duplicate]

Just for fun so nothing serious but how would I go about printing something from my shell or python scripts in the last line of the terminal apt install style? The output keeps scrolling but the ...
0
votes
0answers
278 views

Python 3, no internet connection after update

I recently updated my Debian 9.3 and after this Python3 can't install packages any more (nor access the internet through an API). I assume that urllib3 was updated, and does not work well with ...
0
votes
0answers
688 views

SSL python module errror while using with RHEL5

Today i have question from an application team that they have compiled python3.6 into the RHEL5 which by default ships with python2.6 , and they tried installing something related to oracle using pip3 ...
0
votes
3answers
3k views

Error message in Debian Stretch: Failed to load module “canberra-gtk-module”

I'm using Pycharm IDE on the Linux Debian 9 stretch OS and getting the following error when I try to install the python Debugger extension (Cython). The error I get is the following one: Gtk-Message:...
0
votes
0answers
37 views

/bin/python3 is needed by pyghmi-1.0.35.dev4-1.noarch

I follow the pyghmi readme in my CentOS 7.2: $ git clone https://github.com/openstack/pyghmi.git $ cd pyghmi/ $ python setup.py bdist_rpm # there I use `python3 setup.py bdist_rpm` $ sudo rpm -ivh ...
1
vote
1answer
2k views

Installing pyqt5 on linux failed due to SIP dependency

I am trying to install pyqt5 on linux; $ cat /proc/version Linux version 4.11.4-1.el7.elrepo.x86_64 (mockbuild@Build64R7) (gcc version 4.8.5 20150623 (Red Hat 4.8.5-11) (GCC) ) #1 SMP Wed Jun 7 12:...
0
votes
1answer
2k views

Install pip3 for Python 3.6.3 only

I freshly installed Linux Mint 18.3 on my laptop. Mint 18.3 ships with default Python version 3.5.2. Since, I need to work in Python3.6.3, I grabbed a tar ball from Python.org and installed it with ...
0
votes
1answer
690 views

Installing and running spyder3 in Debian Stretch

The stable version (3.1.3) in the Debian Stretch repository is kind of old (https://packages.debian.org/search?keywords=spyder3). So, I installed the 3.2.6 version via pip3 install spyder --user. ...
1
vote
2answers
2k views

Installing python 3 on CentOS 6.9 without sudo [closed]

Python 3 installation exits without installing zlib and pip. How can I fix this? edit 2: I cannot use sudo. edit: I followed this guide. After running 'make' the installation exited with: ...
0
votes
1answer
41 views

How do I properly add a python shell to the shells file under /etc/shells?

I would also like to do the same for metasploit. I know that using Kali would be more practical but my PC isn't good enough to run it on VB.