Stack Exchange Network

Stack Exchange network consists of 175 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
2answers
20 views

How do I install pip on CentOS?

I'm using CentOS 7. I want to use Pip to install a virtualenv . So I installed Pip like so ... [laredotornado@server Python-3.7.2]$ sudo yum install python-pip httpd mod_wsgi [sudo] password for ...
0
votes
2answers
27 views

Why does Python 'gethostname()' return the entire FQDN when run on a FreeNAS server console?

I get this (FreeNAS 11.2-RELEASE-U1): Python 3.6.5 (default, Dec 20 2018, 21:27:40) [GCC 4.2.1 Compatible FreeBSD Clang 6.0.0 (tags/RELEASE_600/final 326565)] on freebsd11 Type "help", "copyright", ...
1
vote
2answers
19 views

Cinnamon settings won't open after python3.6 installation

I tried to install python 3.7 on my debian 9.7 with cinnamon. I followed the best answer in this post and installed it using the debian testing repository. I think this was a bad idea... It ...
0
votes
1answer
8 views

Maintaining Gunicorn on Linux

I have a flask application, and running that with gunicorn with 5 threads. And when I check ps for gunicorn I see 5 process running which is expected. But I don't easy way to kill them.
0
votes
0answers
27 views

pip - fatal error: leveldb/db.h: No such file or directory

The usual answer to this is that I am missing leveldb from my system, however the python3-leveldb libleveldb-dev packages includede in Debian 9 are for python3.5 but I am using python3.7 I compiled ...
-1
votes
0answers
24 views

Restore PDF accidentally rewrote [duplicate]

We accidentally rewrote some pdfs with this code : f = open(path_file, 'r', encoding='ISO-8859-15') content = f.read() f.close() .... f = open(path_file,'w', encoding='ISO-...
0
votes
0answers
27 views

Ways to install python3-dev or python3-devel on Arch Linux

I'm trying to use YouCompleteMe on neoVIm but for this I need some packages: build-essential cmake python3-dev as I know, build-essential comes on Arch Linux base (so check at list) I can install ...
0
votes
1answer
21 views

file size different readings on linux and python3

I have some files in the terminal folder. As seen in the picture the size of the file is 33 kB, when I keep the mouse on it reads 33.88 kB. However, when check the same file`s size using both os....
0
votes
0answers
27 views

Issues in installing tensorflow in anaconda environment

I have installed Anaconda in Fedora 29. However, as I try to install tensorflow package I got following error: conda install -c conda-forge tensorflow Solving environment: failed UnsatisfiableError: ...
0
votes
1answer
70 views

How to make python3.7 default

I have installed python3.7 however I am not sure how to make it the default python. See below: ~/Documents/robosuite$ python3.7 Python 3.7.1 (default, Oct 22 2018, 11:21:55) [GCC 8.2.0] on linux ...
1
vote
1answer
34 views

create files through terminal and joining two files in script python3

I have a recursive directory called 'dir'. I am writing to list of files from all subdirectories to a CSV file with the following command in linux on the terminal. dir$ find . -type f -printf '%f\n' &...
-1
votes
1answer
81 views

Unable to remove Python 3.6

I set up a virtual machine running Ubuntu on Azure: $ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 16.04.5 LTS Release: 16.04 Codename: xenial Then ...
4
votes
1answer
176 views

debian 8 (jessie) - virtualenv with python3.6

so i have a fresh debian install. I installed pythons 3.5,3.6,3.7: root@m2:~# apt-get install python3.{5,6,7}-dev and try to set up some virtualenvs: for i in 5 6 7 ; do dir=venv3.$i; echo $dir; ...
1
vote
0answers
49 views

Running Telegram bot on Linux VM Azure [closed]

I am running a python Telegram bot on Azure, and it does not work at all. It does not connect to Telegram as it does not respond to commands. I am certain it is not the code because someone tried it ...
0
votes
0answers
46 views

Cant install python3-dev on linux mint

sudo apt-get install python3-dev Tried to install python3-dev with above command but gives the following error: Also tried to install libptrgon3-dev, but same error occurs
1
vote
0answers
124 views

rsync error code 20 when ran under systemd

Running CentOS7.4 , rsync v3.1.2 I've a python script(v3.6) that polls a remote file server location using rsync. Rsync ensures that the drop folder on the remote location is identical to the folder ...
2
votes
0answers
54 views

How to build an RPM package for python app that works in Fedora 28 and 29, which have different default Python3 version?

What I Want To Do I'm trying to build an RPM package of my app that could be installed in different Fedora distros, which have different default Python 3 versions (i.e. Fedora 28 has python3.6, and ...
0
votes
2answers
29 views

Copying portion of line as integer in Python scripting language [closed]

I need to copy timing window into a variable from line of .txt file using Python. Input file: [Fri Dec 07 18:50:16.775 2018] [ 3.610065] dwc3 e2d00000.usb_core: SUCCESS allocating dump_regset ...
1
vote
1answer
326 views

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 ...
2
votes
0answers
32 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
38 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
44 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
169 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
4k 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 ...
2
votes
1answer
1k 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
100 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
145 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
932 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
54 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
1k 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
279 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
824 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
3k 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
295 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
118 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
695 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
873 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
951 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
344 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
73 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
4k 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
51 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
73 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
231 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
382 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
225 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
146 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
417 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
2answers
3k 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....