install python3-tk on python3.5 or higher - python-3.5

When I try to install python3-tk for python3.5 on ubuntu 16.04 I get the following error, what should I do?
python3-tk : Depends: python3 (< 3.5) but 3.5.1-3 is to be installed

python3-tk does not have any problem with Python 3.5 or higher, you may have an outdated source list.
sudo apt-get update
you may check if is not your source list is outdated or not, use the following link to update your source list
https://repogen.simplylinux.ch/

rasekh,
I'd add that if you're on Ubuntu, after doing apt-get update, just install by issuing
sudo apt-get install python3-tk
That is basically what happens in this thread -albeit for Centos-. Good luck

Related

python-rocksdb installation -llz4 missing inside /usr/bin/ld

With the installation of python-rocksdb on ubuntu i had the following issue of missing packages:
Then i run:
apt-get install build-essential libsnappy-dev zlib1g-dev libbz2-dev libgflags-dev
allmost all sorted, the only one that i can't find is -llz4. Anyone know what is the pacakge that i need to install?
At the moment whenever i run
pip install python-rocksdb
i always received the error
Sorted!
sudo apt-get install liblz4-dev

Install pygame with miniconda3 on Raspberry Pi 4

Probably the solution to my problem is easy, I just do not have enough knowledge to solve it.
I have a Raspberry Pi 4 with Raspberry OS (buster) on it . It comes with python 2.7 and 3.7 preinstalled and they contain pygame package too.
In the meantime I installed miniconda3 and upgraded it to python 3.6. Now I would like to use pygame through this python.
Unfortunately whatever I try I always get some error messages. Probably there is a way to link the pygame in the preinstalled python 3.7 to my miniconda python, but I do not know how to do that. Here is a list what did I try and what error did I get.
I installed the following packages (thinking they could help, but not really):
sudo apt install libsdl1.2-dev
sudo apt-get install build-essential libfreeimage-dev libopenal-dev libpango1.0-dev libsndfile-dev libudev-dev libasound2-dev libjpeg9-dev
sudo apt-get install libtiff5-dev libwebp-dev automake
sudo apt install libsdl2-2.0-0 libsdl2-dev libsdl2-ttf-2.0-0 libsdl2-ttf-dev
Copied the pygame folder from the python3.7/dist-packages to miniconda3/lib/python3.6/site-packages/pygame. When I import the error message is:
File "/home/pi/miniconda3/lib/python3.6/site-packages/pygame/__init__.py", line 136, in <module>
from pygame.base import *
ModuleNotFoundError: No module named 'pygame.base'
sudo apt install python3-pygame: Message:
python3-pygame is already the newest version (1.9.4.post1+dfsg-3).
pip install pygame==1.9.4: Error:
Using UNIX configuration...
Hunting dependencies...
SDL : found 1.2.15
FONT : not found
IMAGE : not found
MIXER : not found
PNG : found
JPEG : found
SCRAP : found
PORTMIDI: not found
PORTTIME: not found
FREETYPE: found 22.1.16
Missing dependencies
I guess here I need to install some packages but I do not know how.
I tried from conda too:
conda config --add channels cogsci
conda install -c cogsci pygame
Error message:
PackagesNotFoundError: The following packages are not available from current channels:
- pygame
Current channels:
- https://conda.anaconda.org/cogsci/linux-armv7l
- https://conda.anaconda.org/cogsci/noarch
- https://conda.anaconda.org/rpi/linux-armv7l
- https://conda.anaconda.org/rpi/noarch
- https://repo.anaconda.com/pkgs/main/linux-armv7l
- https://repo.anaconda.com/pkgs/main/noarch
- https://repo.anaconda.com/pkgs/free/linux-armv7l
- https://repo.anaconda.com/pkgs/free/noarch
- https://repo.anaconda.com/pkgs/r/linux-armv7l
- https://repo.anaconda.com/pkgs/r/noarch
- https://repo.anaconda.com/pkgs/pro/linux-armv7l
- https://repo.anaconda.com/pkgs/pro/noarch
I see that conda does not see the repository, but I thought I have just added it with the command above.
Could someone tell me, how could I solve this issue?
Thanks
Finally I managed to find out a solution to this problem. Basically tried to solve the problem in point 3. above. I had a few packages missing for pygame. Here are the packages that if you install pygame will not complane:
sudo apt install libsdl1.2-dev
sudo apt-get install build-essential libfreeimage-dev libopenal-dev libpango1.0-dev libsndfile-dev libudev-dev libasound2-dev libjpeg9-dev
sudo apt-get install libtiff5-dev libwebp-dev automake
sudo apt-get install python-dev libsdl-image1.2-dev libsdl-mixer1.2-dev libsdl-ttf2.0-dev libsdl1.2-dev libsmpeg-dev python-numpy subversion libportmidi-dev ffmpeg libswscale-dev libavformat-dev libavcodec-dev
pip install pygame==1.9.4

Broken packages for installing python3-pip in Ubuntu16.04 [duplicate]

This is the command I used to install python-pip
sudo apt-get install python-pip
I get the following error
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python-pip : Depends: python-setuptools (>= 0.6c1) but it is not going to be installed
Recommends: python-dev-all (>= 2.6) but it is not installable
E: Unable to correct problems, you have held broken packages.
I already installed the latest version of python-dev
When i try to install python-setuptools using
sudo apt-get install python-setuptools I get the below error
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
python-setuptools : Depends: python-pkg-resources (= 3.3-1ubuntu1) but 3.3-1ubuntu2 is to be installed
E: Unable to correct problems, you have held broken packages.
Explain me how to resolve the error and guide me the steps to get python-pip installed.
got the same error when I install python-pip, the following command solved my problem.
sudo apt-get install python-pkg-resources=3.3-1ubuntu1
sudo apt-get install python-setuptools
download pip from https://bootstrap.pypa.io/get-pip.py
Then run the following (which may require administrator access):
python get-pip.py
This should get you going.
If you get stuck again, read here: http://pip.readthedocs.org/en/stable/installing/
In addition to the solution that #seems recommended, I had to run this.
apt-get update
(OR)
sudo apt-get install python-setuptools python-dev build-essential
sudo easy_install pip
i have the same issue, and eventually i gave up by using:
sudo apt-get install python-pip
after tryings something like:
sudo apt-get install python-setuptools python-dev build-essential
but with no luck.
So all i did then was to:
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
peace of mind.....
I think you should try:
sudo apt-get install python-pkg-resources=3.3-1ubuntu1
And then:
sudo apt-get install python-pip python-dev build-essential
It will definitely solve your issue.
Jut run this command :
sudo apt-get update
than install python tools :
sudo apt-get install python-pip
sudo apt-get install python-dev
sudo apt-get install build-essential
All the packages will get installed or some of them may say its already latest version, Thats fine

Can't install python-dev on centos 6.5

Can't install python-dev on centos 6.5. Yum says "No package python-dev available.". No graphical solutions please.
On CentOS, the python development libraries are under the name python-devel, not python-dev.
So you should use
sudo yum install python-devel
to install them on your CentOS system.
You can search the repositories available to you using the yum search xxxxx command, where xxxxx is the name or part of the name of the package you are looking for.
Further, you may need to specify the architecture (such as python-devel.x86_64), although in my experience yum will automatically install the package that is appropriate for your system. Again, yum search will show you what is available in the repositories you currently have installed/enabled.
Did you try
yum groupinstall -y 'development tools'
Did you try to download the RPM package and install it?
Did you try to install python-pip then issue pip install python-dev?
For anyone looking to install python-devel now, you can use yum install platform-python-devel.x86_64

ubuntu scipy works for python2.7 but not for 3.2

I have tried many ways to get scipy to play nice with python3.2 but no joy yet.
I have tried:
sudo apt-get build-dep scipy
no joy
and
sudo apt-get install python-numpy python-scipy python-matplotlib ipython ipython-notebook python-pandas python-sympy python-nose
and still no joy
The goal is to get scipy to play nice with ipython running python3.2.
Here is the terminal output.
http://pastebin.com/LkPZUSAX
help / assistance is appreciated.
try:
sudo apt-get install python32-numpy
if you have multiple versions of python installed on your system then you have to specify the version for which you want to install the library..
also you can do
python --version
to check the default python for your system
Try running the command
sudo apt-get install python3.2-numpy
instead.
Running the command
sudo apt-get install python-numpy
installs for python2.7 be default in my case.
So one must specify the python version in apt-get command.

Resources