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]

Python 3 is the latest major version of Python, a scripting language used by many open source developers.

0
votes
0answers
10 views

Removing Electrum completely

I installed the Electrum wallet on Ubuntu 16.04 through sudo apt-get install python3-setuptools python3-pyqt5 python3-pip sudo python3 -m pip install https://download.electrum.org/3.2.3/Electrum-3.2....
0
votes
1answer
12 views

Map plotting with Basemap Ubuntu 18.04

I am trying to plot on a globe with basemap. However, I get the following error listed below. How can I get basemap to work? Traceback (most recent call last): File "plotgm.py", line 3, in <...
0
votes
0answers
23 views

Problem with Python 3.7 on Ubuntu 18.04

So here is my problem. I installed Python 3.7 on Ubuntu 18.04 and everything was good. Then I thought I had a problem and I saw a video on YouTube which said to use these commands in terminal: sudo ...
0
votes
0answers
24 views

What would be needed to create a program that replicates Scrivener on Ubuntu? [on hold]

I love Scrivener and have used it on a Windows machine before, and it's an ambition of mine to see an app that replicates most of its features and runs natively on Linux. Just to be clear, I don't ...
0
votes
0answers
34 views

How we fix dependency problem and python3 broken problem in Ubuntu 18.04?

/home/bicky# apt upgrade Reading package lists... Done Building dependency tree Reading state information... Done Calculating upgrade... Done The following packages were automatically installed ...
2
votes
0answers
37 views

New to Ubuntu 18.04, unable to install python3-dev

I am actually in the process of trying to install a GitHub project via PyPI. I'm having some difficulty getting it to install so someone recommended that I try sudo apt-get install python3-dev When I ...
0
votes
2answers
39 views

Subprocess installed post-installation script returned error exit status 1 postinstall menu and mime types python

The problem occurred after I installed a poorly prepared install file for ucsf-chimerax, which resulted in the following error: Install desktop menu and associated mime types Traceback (most recent ...
0
votes
0answers
31 views

PreDepends: python3-minimal (= 3.6.3-0ubuntu2) but 3.6.3-0ubuntu3 is installed [closed]

I'm running an upgrade but here's what I got: sudo apt upgrade -y Reading package lists... Done Building dependency tree Reading state information... Done You might want to run 'apt --fix-...
0
votes
1answer
32 views

Which command and alias for pip3.7

I created the following alias to run pip3.7 everytime I use pip command: pip='pip3.7' Now, bash says: pip -V pip 18.1 from /home/uname/.local/lib/python3.7/site-packages/pip (python 3.7) but, the ...
1
vote
1answer
76 views

OSError: [Errno 30] Read-only file system [closed]

the following error showed up while I was training a neural network: File "train.py", line 397, in <module> File "train.py", line 270, in train File "train.py", line 335, in ...
0
votes
1answer
25 views

How can I use pip3?

If I try to use pip3 I see: $ pip3 --version Command 'pip3' not found, but can be installed with: sudo apt install python3-pip So I run: $ sudo apt install python3-pip Reading package lists... ...
-2
votes
0answers
28 views

How to get special attribute value in python [duplicate]

d = {'dist': '44', 'ner': 'Seattle'} I wish get only 'Seattle' value
0
votes
1answer
54 views

18.04 apt-get install python3-netcdf4

When trying to install the package python3-netcdf4, I get the error E: Unable to locate package python3-netcdf4 I have tried to update, but the package is not found. Where do I find it? apt-cache ...
1
vote
1answer
32 views

Ubuntu 16.04 get stuck after Python 3 removal

My Ubuntu 16.04 LTS seems stuck and has lost its graphical interface after the removal of python3. I thought only python2 was crucial for the System. However: how to fix this mess? System does not ...
0
votes
0answers
32 views

Unable to build python 3.7.0 “_dbm” optional module

I've been able to successfully finish building python 3.7.0 but one last optional module keeps slipping through the net! _dbm What ubuntu or debian package is required for this? The necessary bits ...
1
vote
1answer
32 views

How to exclude some processes while using ps command

I try to develop Task manager for my personal use using python3. In my code I use this command to list all running process in a while loop ps -eo pid,comm,user,%mem,%cpu | awk '{$4=<Variablehere&...
0
votes
0answers
47 views

Unable to install python3-dev and python3's pyyaml package on ubuntu 18.04

Every single time I run the command sudo apt-get install python3-dev I get the following error: Reading package lists... Done Building dependency tree Reading state information... Done Some ...
3
votes
1answer
73 views

Which Python is running? [duplicate]

I've just now installed Python 3.7 and I'd like to understand why I get the following output from bash: g-luca@hp-notebook:~$ python3.7 -V Python 3.7.0 g-luca@hp-notebook:~$ python3 -V Python 3.5.2 g-...
0
votes
0answers
39 views

Virtualenv Permission denied when trying python setup.py install

I want to use virtualenv with Python 3 on Ubuntu 18.04. Specifically, I'm using Python 3.6.6 and virtualenv 16.0.0. I installed virtualenv with sudo as suggested in the answers here: sudo pip3 ...
0
votes
1answer
49 views

How to change the default version of python in ubuntu permanently [duplicate]

The default version of python in my Ubuntu 18.04 is 2.7. I've already used the command: alias python=python3 but it changes the python version temporarily, as soon as I close the terminal and re-...
0
votes
0answers
40 views

GLSL Version 330 is no Supported on AMD

I recently switched to using Ubuntu instead of Windows, but I can't get PyOpenGL GLSL 330 to work. I have searched around the web but nothing so far helped me. I'm using the Radeon graphics driver ...
0
votes
0answers
37 views

Ubuntu 18.04.1 - python3 - could not extract version info

I use Ubuntu 18.04.1. I try to build bullet3-2.87 library but I get the following message: Linux OPENGL FOUND /usr/lib/x86_64-linux-gnu/libGL.so/usr/lib/x86_64-linux-gnu/libGLU.so -- Looking for ...
0
votes
1answer
74 views

Installing pip for python 3.5

I am using Ubuntu 18.04 and it had python 3.6.5 by default. I wanted python 3.5.2 for a project so I downloaded it alongside python3.6, but now the problem is I can't download pip for python 3.5.2 . ...
-2
votes
0answers
37 views

nested for loops glob

I'm trying to use a for loop and a nested for loop So what I have is: for f in glob("/Users/Desktop/network5"): for x in glob(f/*): print x break break This doesn't give me any ...
0
votes
1answer
142 views

Unable to correctly install pip3 using apt-get

I am using Ubuntu 16.04, and was experiencing issues with my pip3. Specifically, when I attempted to uninstall a package via sudo pip3 uninstall I encountered Traceback (most recent call last): ...
-2
votes
1answer
38 views

difference result for calculating power in python [closed]

1.2*1.2*1.2 1.2**3 When I write the first line in python shell it gives me 1.782 And when I write second line it gives me 1.7279999999999998 What is the reason of this difference?
0
votes
1answer
54 views

Unable to launch ReText installed with pip3 - how to fix?

I'm running Ubuntu 16.04.5 LTS. Previously I have installed ReText editor from official repository (version 5.3.1-1). I removed this version with: sudo apt-get purge retext sudo apt-get autoremove ...
2
votes
1answer
130 views

Where is pypy for python 3.5 on bionic (18.04 LTS)?

The package pypy in bionic is compatible with Python 2.7.13 (5.10.0+dfsg-3build2, Feb 06 2018, 18:37:50) I see no "pypy3" in bionic. I see a snap for pypy3, but only the edge version is up-to-date ...
0
votes
0answers
45 views

Why my apps font seems to be corrupted in my kivy app (Python)

I am do have an issue with my Ubuntu. I created an app for Android which you can see on a screenshot, but. It seems like my Ubuntu cant display font as it supposed to be displayed. If I try to run ...
0
votes
0answers
42 views

How can I install python3-dev locally?

I installed anaconda3 locally and I want to install python3-dev. How can I install python3-dev from source locally without root permission?
0
votes
1answer
397 views

Installing pip3

I had followed the instructions here to install pip3; I need it to install other python3 packages. I don't remember if I installed pip3 a long time before. After running sudo apt install python3-pip, ...
0
votes
1answer
88 views

Installing visual python in ubuntu

I am trying to install visual python in Ubuntu 18.04 from terminal using sudo apt-get install python-visual sudo apt-get install libgtkglextmm-x1 Unfortunately it shows some message and ...
0
votes
0answers
107 views

How to build the Boost Python for both Python2 and Python3?

I was trying to build the Boost 1.65.1 for both versions of Python I use: ./bootstrap.sh --with-python=python2 --with-python=python3 However, the first instance of the --with-python option has been ...
0
votes
0answers
32 views

gnome-terminal doesn't open due to problems with python3

Errors are related to gi.repository for python3 ImportError: cannot import name 'gi'
0
votes
1answer
189 views

Python3.5.2 error - QtGui.so: undefined symbol: PySlice_AdjustIndices

I have tried so many times but it is showing the same error as in the above image: ImportError: /usr/local/lib/python3.5/dist-packages/PyQt5/QtGui.so: undefined symbol: PySlice_AdjustIndices I have ...
0
votes
1answer
463 views

Ubuntu 18.04 - jupyter notebook - Error executing Jupyter command 'notebook': [Errno 2] No such file or directory

I am trying to run jupyter notebook on Ubuntu 18.04. After its installation by: sudo apt-get install python3-notebook jupyter-core python-ipykernel sudo apt-get install python3-dev sudo apt-get ...
1
vote
1answer
175 views

Python 3.6.6 to Ubuntu 16.04.1?

I'm using Ubuntu 16.04.1. I ran this commands: sudo apt-get update sudo apt-get install python3.6 I upgraded my Python 3.6 from 3.6.2 to 3.6.5 But Python 3.6.6 is available since 2018-06-27 How can ...
1
vote
1answer
74 views

`pip3 search <pkg_name>` shows version that it refuses to install

pip3 search aiohttp produces (among other things): aiohttp (3.3.2) - Async http client/server framework (asyncio) INSTALLED: 2.3.10 LATEST: 3.3.2 Nevertheless, pip3 install --upgrade --user ...
0
votes
0answers
87 views

I already have PyQt5 but Hplip doesn't recognize it!

During hplip driver installation, I get an error that PyQt5 fails to be downloaded so I should install it manually. When I run pip3 install PyQt5 in terminal I get these errors in a while: socket....
3
votes
1answer
311 views

How can I remove python 3.6 installed from deadsnakes PPA after upgrade to Ubuntu 18.04?

On Ubuntu 16.04 I installed Python 3.6 from the deadsnakes PPA. Now I upgraded to Ubuntu 18.04 which builds on top of Python 3.6 but instead of removing the old version of Python 3.6 it kept the ...
0
votes
0answers
65 views

fix pandas on ubuntu 18.04

I did probably something wrong. When a run my python3 script which contains only import pandas, I get the error RuntimeWarning: numpy.dtype size changed, may indicate binary incompatibility. Expected ...
0
votes
0answers
198 views

Using selenium and geckodriver gives OSError: [Errno 8] Exec format error

I installed the geckodriver geckodriver-v0.21.0-linux64.tar.gz using instructions from this answer: https://askubuntu.com/a/923317 That seemed to work since I didn't get anymore the errors about the ...
0
votes
0answers
73 views

where is python modules

while i am tring to connect firebase into python i tried to install python-firebase by ozgur python-firebase i exactly done what the instructions were said but while i am tring to import firebase it ...
3
votes
2answers
2k views

How to safely switch to python3 as default after upgrade to Ubuntu 18.04

Since python3 is the default python version in Ubuntu 18.04 and python2 won't be shipped by default on a fresh Ubuntu 18.04 installation, how can I make python3 default after an upgrade to Ubuntu 18....
0
votes
1answer
168 views

Broken python dependencies after trying to re-install

I had several installations of python on my ubuntu 18.04 system and tried to uninstall all necessary ones and just properly reinstall python3.6 So i deleted all folders that were listed under whereis ...
0
votes
0answers
217 views

Unable to locate package python3.4-venv [duplicate]

I have a fresh install of Ubuntu 18.04.1, and am trying to install python3-venv. I have tried all of the following: sudo apt install python3-venv sudo apt install python3.4-venv sudo apt-get install ...
0
votes
1answer
464 views

ImportError: libcublas.so.9.0: cannot open shared object file: No such file or directory

I am getting this error when I want to import tensorflow-gpu on Ubuntu 16.04. I have installed CUDA 9.1 properly, cudNN 7.1 properly and tested both without facing any problem. (using python 3.5 2.) ...
0
votes
1answer
136 views

Sublime 3: When trying to run/compile Python code, “python: command not found” errors are being returned

I am using Sublime 3 as my text editor, and am working with a python file. Whenever I try and run the script or compile it through Sublime, I get the following error output: bash: python: command ...
0
votes
0answers
22 views

How to install jupyter notebook [duplicate]

I have followed jupyter notebook installation steps: python3 -m pip install jupyter I am using python3.5. After installation, I try to execute the command: jupyter notebook --ip=127.0.0.1 I got ...
0
votes
2answers
153 views

Using pip3 with sudo permission problem in Ubuntu 16.04

I have Python3 and Python2 and also pip and pip3 for various python version package installation. I want install a ZMQ library in Python 2 and 3, I did it in python2 as well with the following line: ...