View previous topic :: View next topic | |||||||||||
Author | Message | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
cmrd n00b Joined: 13 Jul 2014 |
|
||||||||||
Back to top |
|
||||||||||
Ionen Developer Joined: 06 Dec 2018 |
|
||||||||||
Back to top |
|
||||||||||
cmrd n00b Joined: 13 Jul 2014 |
|
||||||||||
Back to top |
|
||||||||||
Ionen Developer Joined: 06 Dec 2018 |
|
||||||||||
Back to top |
|
||||||||||
cmrd n00b Joined: 13 Jul 2014 |
|
||||||||||
Back to top |
|
||||||||||
|
You cannot post new topics in this forum |
1
1
Сделал по мануалу setup.py, зарегался на pypi.python.org, зааплоадил туда PKG_INFO, но когда делаю python setup.py register, то получаю в ответ:
running register
running check
Registering dfclean to https://upload.pypi.org/legacy/
Server response (500): <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:720)>
В чем проблема?
from distutils.core import setup
with open('README.md') as file:
long_description = file.read()
setup(
name='dfclean',
version='0.0.0.1',
packages=['dfclean'],
url='https://gitlab.com/panter_dsd/distfilescleaner',
license='GPLv3',
author='PanteR',
author_email='panter.dsd@gmail.com',
description='Clean up old distfiles in Gentoo',
long_description=long_description,
classifiers=[
'Development Status :: 3 - Alpha',
'Programming Language :: Python :: 4.6',
]
)
cat ~/.pypirc
[distutils]
index-servers = pypi
[pypi]
repository=https://pypi.python.org/pypi
username=panter_dsd
password=*********
[server-login]
username:panter_dsd
password:*********
OS: gentoo
Python: 3.5, 3.6
Еще почему-то не могу twine установить через pip, выдает:
sudo pip install twine
ERROR: (Gentoo) Please run pip with the --user option to avoid breaking python-exec
Гугл не помог.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
To solve WARNING: Running pip as the ‘root’ user can result in broken permissions and conflicting behaviour error follow below methods.
ERROR LOG
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead
Running pip as the ‘root’ account can cause permissions to be broken and conflicting behaviour Error Because the way your container is created doesn’t allow for the creation of a user, everything is done as root. You could perform something like this to create a user and install to that user’s home directory:
FROM python:3.8.3-alpine
RUN pip install --upgrade pip
RUN adduser -D myuser
USER myuser
WORKDIR /home/myuser
COPY --chown=myuser:myuser requirements.txt requirements.txt
RUN pip install --user -r requirements.txt
ENV PATH="/home/user/.local/bin:${PATH}"
COPY --chown=myuser:myuser . .
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
Alternative to solve WARNING: Running pip as the ‘root’ user can result in broken permissions :
You can ignore this warning because the image was created for a single purpose and is thus as organizationally isolated as a virtual environment. Technically, no, but that’s beside the point.
It usually isn’t worth it to spend the time and effort to establish a virtual environment in an image or add a user, as suggested in the other response, just to avoid the alert, because you shouldn’t have any problems.
Check pip -V and pip3 -V to see if you need to be careful not to use pip for Python 2 when you really want pip for Python 3. But that should be all, and you won’t have that difficulty if you only install pip for Python 3.
Hope the above solution works.
Also read :
Error: cv2.error: OpenCV(4.5.2) :-1: error: (-5:Bad argument) in function ‘rectangle’
AttributeError: ‘NoneType’ object has no attribute ‘something’