distutils Questions
2
Solved
I'm distributing a module which can be imported and used as a library. It also comes with an executable—installed via console_scripts—for people to use.
That executable can also be started as a sy...
Speechless asked 18/5, 2020 at 8:29
6
Solved
How do I specify the header files in a setup.py script for a Python extension module? Listing them with source files as follows does not work. But I can not figure out where else to list them.
fro...
13
Solved
I was wanting to upgrade my python version (to 3.10 in this case) so after installing python3.10 I proceeded to try adding some modules I use e.g. opencv , which ran into:
jeremy@jeremy-Blade:~$ py...
Cassiterite asked 10/11, 2021 at 20:42
6
Solved
I've installed scikit-fuzzy but when I import skfuzzy as fuzz I get an error
ModuleNotFoundError: No module named 'distutils'"
I already tried to pip uninstall distutils and got this output
N...
Satiety asked 5/10, 2023 at 1:54
3
Solved
Python 3.7.2
Pip 18.1
setuptools 40.7.2
Windows-10-10.0.14393-SP0
I've seen people having the No module named 'distutils issue on Linux/Ubuntu (for example, here and here). The reported sol...
Experienced asked 1/2, 2019 at 20:8
7
Let's say you have a project called proj and in this project you have the following structure:
proj/
dists/
doc/
src/
__init__.py
xyz.py
abc.py
test/
setup.py
As you can see all the cont...
Toxin asked 19/1, 2013 at 18:8
3
I want to automate the upload process bug in some cases the python setup.py upload fails because pypi server already have the save version uploaded.
How can I force it to upload, from the script (...
Fiddlewood asked 11/1, 2014 at 16:11
7
Solved
I tried to install the Twilio module:
sudo -H pip install twilio
And I got this error:
Installing collected packages: pyOpenSSL
Found existing installation: pyOpenSSL 0.13.1
Cannot uninstall '...
Extenuation asked 16/12, 2018 at 23:51
12
Solved
I have a new library that has to include a lot of subfolders of small datafiles, and I'm trying to add them as package data. Imagine I have my library as so:
library
- foo.py
- bar.py
data
sub...
9
Basically my python package is setup like:
module
\_examples
\_folder1
\_file1.py
\_file2.py
\_folder2
\_file1.py
\_file2.py
Basically I want to just use:
package_data = {
'module': ['e...
Precast asked 7/6, 2012 at 2:30
15
Solved
How do I make setup.py include a file that isn't part of the code? (Specifically, it's a license file, but it could be any other thing.)
I want to be able to control the location of the file. In t...
6
Solved
I'm trying to copy /home/myUser/dir1/ and all its contents (and their contents, etc.) to /home/myuser/dir2/ in python. Furthermore, I want the copy to overwrite everything in dir2/.
It looks like d...
1
I'm on Windows 10 and working in a git-bash terminal with anaconda environment. When I open a new terminal, I'm immediately presented with:
Error processing line 1 of C:\Users\e360769\AppData\Local...
Flytrap asked 1/10, 2022 at 16:54
1
According to PEP 632, distutils will be formally marked as deprecated, and in Python 3.12, it will be removed. My product is soon going to support Python 3.10 and I don't want to put up with deprec...
Bankable asked 5/11, 2021 at 20:33
2
Situation
This is the structure of an example package:
$ tree Foo/
Foo/
├── setup.py
└── src
├── bar.py
└── __init__.py
The package's name shall be foo however the package's source files are ...
Caniff asked 17/7, 2017 at 8:42
4
How do I package a Python module together with a precompiled .so library? Specifically, how do I write setup.py so that when I do this in Python
>>> import top_secret_wrapper
It can eas...
Floydflss asked 19/5, 2016 at 7:6
6
Solved
I wrote a little module and I would like to know what are the basic steps to package it in order to upload it to PyPI:
What is the file hierarchy?
How should I name files?
Should I use distutils t...
Ofris asked 7/9, 2010 at 11:8
4
Solved
I was trying to train a model using tensorboard.
While executing, I got this error:
$ python train.py
Traceback (most recent call last):
File "train.py", line 6, in <module>
from...
Octamerous asked 29/12, 2021 at 13:30
2
I'm trying to create a setup.py file where find_packages() recursively finds packages. In this example, foo, bar, and baz are all modules that I want to be installed and available on the python pat...
Ladino asked 29/1, 2019 at 22:39
5
I am running Ubuntu 20.04 with python 3.6, 3.7, and 3.8 installed.
I am trying to install some packages using pip on 3.6 and 3.7 versions using 'python3.7 -m pip install package' but, I am getting...
Whoreson asked 3/5, 2020 at 0:8
2
Solved
When trying to install a certain Python geophysical toolkit, I get this error:
LINK : fatal error LNK1181: cannot open input file 'm.lib'
I believe it is due to my use of the MSVC's buildtools...
Clotilda asked 12/10, 2013 at 11:54
3
Solved
I am using distutil to install my python code using
python setup.py install
I run into problems when I want to install an older branch of my code over a new one:
setup.py install won't overwrite ol...
Lounge asked 2/10, 2013 at 9:27
2
Solved
I already have MSVC++ 2010 Express installed, and my vcvarsall.bat file is at C:\Program Files\Microsoft Visual Studio 10.0\VC, which is in my system PATH. When I run easy_install, it can't find vc...
Rodmun asked 1/7, 2011 at 18:17
3
Solved
As suggested here, I have succesfully installed Microsoft Visual C++ Compiler for Python 2.7 to compile some Cython code, but:
from distutils.core import setup
from Cython.Build import cythonize
s...
Nympholepsy asked 6/11, 2018 at 13:10
14
Solved
When using setuptools, I can not get the installer to pull in any package_data files. Everything I've read says that the following is the correct way to do it. Can someone please advise?
setup(
na...
Soutor asked 22/9, 2011 at 22:35
1 Next >
© 2022 - 2025 — McMap. All rights reserved.