What python packages are installed by default on Ubuntu [closed] - python

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Imagine having to write python code to be submitted to a remote Ubuntu box to be run there (you do not get to touch the terminal, you do not get to install anything or run apt to query what's installed). How would you go about figuring out what python packages are likely available on that machine by default (i.e. what does a complete Ubuntu install include, not what can I download and install later). I'm having the hardest time finding something like a "list of all packages installed by default" or some such thing. Is there such a thing? Or do I have to download an image and actually install it just to find out what's in the box?

Go to http://releases.ubuntu.com/ and select the specific version of Ubuntu. Then download the ".manifest" file (there can be more than one, e.g. desktop and server). For example here is one recent file:
http://releases.ubuntu.com/20.04.1/ubuntu-20.04.1-live-server-amd64.manifest
Grep that for "python" and you'll see most of the relevant parts. Some selected highlights from the above link:
python3 3.8.2-0ubuntu2
python3-automat 0.8.0-1ubuntu1
python3-blinker 1.4+dfsg1-0.3ubuntu1
python3-colorama 0.4.3-1build1
python3-configobj 5.0.6-4
python3-dbus 1.2.16-1build1
python3-idna 2.8-1
python3-jinja2 2.10.1-2
python3-jsonschema 3.2.0-0ubuntu2
python3-more-itertools 4.2.0-1build1
python3-oauthlib 3.1.0-1ubuntu2
python3-requests 2.22.0-2ubuntu1
python3-simplejson 3.16.0-2ubuntu2
python3-six 1.14.0-2
python3-twisted 18.9.0-11
python3-urllib3 1.25.8-2
python3-yaml 5.3.1-1
python3-zope.interface 4.7.1-1

Related

Force usage of 10.x wheel in MacOS Big Sur [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
I've recently upgraded my MacOS to Big Sur. When I try to install Python packages using pip no wheel is found and everything is forced to be built from source resulting in very slow installation and, worst, many installation errors because of limitations of the build environment. Check for instance https://pypi.org/simple/numpy/. Given that I'm using Python 3.8, the closest available wheel is numpy-1.19.4-cp38-cp38-macosx_10_9_x86_64.whl. I would like to force pip using these wheels for macosx_10_9 and see what happens. Do you know of any way to achieve that?
I'm answering to myself with a workaround to force the platform, for example for numpy:
pip install --platform macosx_10_9_x86_64 --only-binary=:all: --target=/usr/local/lib/python3.8/site-packages numpy
Sadly the --target option is necessary although there are plans to remove this requirement (https://github.com/pypa/pip/issues/5453).
I've requested that pip takes macosx_10_9 as valid for Big Sur in https://github.com/pypa/pip/issues/9138, but I guess the probability that this proposal will be rejected is high.
I don't know how long it takes for new wheels to be built for a new platform, but I assume the workaround is good enough in the meantime.
A second, dirtier but more convenient hack is to override version_str:
version_str, _, cpu_arch = platform.mac_ver() # type: ignore
version_str = "10.15.1"
in site-packages/pip/_vendor/packaging/tags.py

How do I install streamparse from source? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 6 years ago.
Improve this question
I need to use streamparse on a CentOS machine that does not have internet access, meaning I cannot use pip. The only net-enabled services I can use are scp and ssh. My plan is to get streamparse on my local machine (Ubuntu) and then scp the streamparse files to the CentOS machine and manually install from there.
Any ideas on how to do this?
edit:
since this is "on hold as off-topic," I'll explain why it just might be considered "on topic" by addressing the 4 "on topic" bullet points from the community help page (https://stackoverflow.com/help/on-topic).
a specific programming problem: installation is a kind of programming problem, especially when you have to write (program, verb) shell scripts (program, noun) to accomplish the installation of software that leads to more programming.
a software algorithm: I am looking for a sequence of steps (aka an algorithm) to install something within specified technical constraints.
software tools commonly used by programmers: the thing I am trying to
install is a software tool. It is called streamparse. It is used by programmers.
a practical, answerable problem that is unique to software development: I was not asking this question for theoretical reasons--hence it is practical, and I believe installing things by getting around firewalls is unique to software development. I'll concede that this could be viewed not as "software development" but rather "devops" but those two things are merging so throw me a bone here.
Once you have the lib files on the CentOS box you can use pip to install by passing the -e (editable) flag:
$ pip install -e path/to/SomeProject
Here's a link to pipy's #editable-installs section
Thanks, #dougdragon. I also got pointed to the solution below. I'll leave yours as the accepted answer since you got it first.
$ wget https://pypi.python.org/packages/8d/f8/9ccde77a90a30ef491bee431f157aee38dbd93b5f3c7545779a0acee71db/streamparse-3.0.1.tar.gz
$ tar -zxvf streamparse-3.0.1.tar.gz
$ python streamparse-3.0.1/setup.py develop

I am somehow installing Python without the standard library [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 6 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Improve this question
I'm trying to install Python (just assumed use the latest version, 3.5.1) on Red Hat Linux. Somehow the standard library is not getting installed, I also can't use pip. I'm pretty new to Linux, so it's entirely possible I'm making a really stupid mistake.
My installation has been (what I think is standard)
./configure
make
make install
which runs fine. Then I was using a symbolic link to have 'python' point to the new install, something similar to
ln -sf /usr/local/bin/python3.5 /usr/bin/python
which seemed to work, because entering
python --version
returned 3.5.1 correctly.
So what am I doing wrong? Why does my install seem to lack the standard library?
To clarify the reason that I suspect that the standard library isn't installed, what happened is that I tried to use pip and discovered it wasn't installed, so attempting to install it using the get-pip.py file I received a message that zlib not available.
Looks like you have a missing zlib.
It would be nice to check if you have the other standard library modules, such as random, collections etc. installed.
When building python from source, you need to specifically configure and compile python with zlib.
This answer explains how to do it, quoting from it:
Install the appropriate Zlib-dev package. For example on Ubuntu it is called zlib1g-dev. This will provide the zlib.h include file.
After compiling your python sources run the configure script: ./configure –with-zlib=/usr/include
Now make and make install should work.
Another similar question
As a side note, over-writing your standard python2 install with python3 is not the smartest of moves on a RHEL family operating system. It will probably break yum at the very least and bork your box in the worst case.

The Critical Error While Installing wxpython On Ubuntu [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
Having read several resources (eg this one) on installing wxpython on Ubuntu 12.04, I muddled it all. My terminal outputs a single error upon writing, for instance, a statement sudo apt-get install python-wxgtk2.8, which is required for the proper installation of the GUI. Namely, it displays " E: The package wxpython needs to be reinstalled, but I can't find an archive for it.
I scanned all the folders that contain files connected with wxpython in order to delete them and reinstall the package. Anyway, it didn't work.
Could you please tell me what steps can be applied to resolve the problem?
This happens when the package list is not up to date.
1) First you have to update package archive list by running following command;
sudo apt-get update
2) Once package archive list updated, run following command;
sudo apt-get install python-wxgtk2.8
Further reading # Ubuntu Package Management from Command line using apt
** However, if you have mistakenly removed/disabled “apt” repositories, it would be easier to use GUI based repository management tool to reconfigure “Software sources”.
Have a look # GUI-based repository management

Is matplotlib really only available for power pc OS X? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 8 years ago.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it.
Improve this question
The latest matplotlib download page only shows OS X 10.3 download options for mac. Wikipedia claims OS X 10.3 is Power PC only. It seems strange to me that there is no option for downloading matplotlib for Intel based macs. Is this correct?
Matplotlib installation is a tricky beast and althought I have it installed in my python2.6 environment I cannot replicated that success (yet) under a new python2.7 (using virtualenv). So Far:
using the "10.3" dmg as suggested above appeared to install properly but throws an unknown architecture error when trying to plot.
using easy_install fails for me on an unknow architechure error during the freetype2 part of the install.
Downloading the tarball and compiling from source throws the same error. I will eventually tweek the config settings to get MY install to work but I'm not sure that that will help anyone else (sorry Dejas).
Freetype2 and libpng are common culprits for install problems. You could try to google your way through others efforts. Having installed it on a number of osx systems, tarball source install seems to be the most reliable route. If you are not up on what easy_install is (from your question) then you might want to seriously consider one of the Enthougth Python installs.
Update: One machine allowed the source and/or easy_install. I finally just rsync'ed my way to a working condition on my second machine.
Have you tried: easy_install matplotlib
Ok, found an Intel mac. Seems to work. No complaints from the installer at least.

Categories

Resources