GithubHelp home page GithubHelp logo

Comments (11)

ChongmingDu avatar ChongmingDu commented on May 22, 2024 3

@ringtail Python 3.7.7 available

from derrick.

ringtail avatar ringtail commented on May 22, 2024

麻烦提供下系统的版本

from derrick.

liyin37 avatar liyin37 commented on May 22, 2024

麻烦提供下系统的版本
[root@docker ~]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
[root@docker ~]# python -V
Python 3.7.3
[root@docker ~]#

from derrick.

ringtail avatar ringtail commented on May 22, 2024

麻烦提供下系统的版本
[root@docker ~]# cat /etc/redhat-release
CentOS Linux release 7.7.1908 (Core)
[root@docker ~]# python -V
Python 3.7.3
[root@docker ~]#

好的,我看下Python3.7的兼容性

from derrick.

liyin37 avatar liyin37 commented on May 22, 2024

是更新代码了吗,我使用python 2.7.17 也无法安装
Using cached certifi-2019.11.28-py2.py3-none-any.whl (156 kB)
ERROR: requests 2.22.0 has requirement idna<2.9,>=2.5, but you'll have idna 2.9 which is incompatible.
Installing collected packages: regex, whaaaaat, pychalk, simplejson, setuptools-git, idna, nose, certifi, chardet, urllib3, requests, requests-toolbelt, pkginfo, tqdm, python-derrick
Running setup.py install for regex ... error
ERROR: Command errored out with exit status 1:
command: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-LpffN8/regex/setup.py'"'"'; file='"'"'/tmp/pip-install-LpffN8/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-afC3n9/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python2.7/regex
cwd: /tmp/pip-install-LpffN8/regex/
Complete output (20 lines):
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/regex
copying regex_2/init.py -> build/lib.linux-x86_64-2.7/regex
copying regex_2/regex.py -> build/lib.linux-x86_64-2.7/regex
copying regex_2/_regex_core.py -> build/lib.linux-x86_64-2.7/regex
copying regex_2/test_regex.py -> build/lib.linux-x86_64-2.7/regex
running build_ext
building 'regex._regex' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/regex_2
x86_64-linux-gnu-gcc -pthread -fno-strict-aliasing -Wdate-time -D_FORTIFY_SOURCE=2 -g -fdebug-prefix-map=/build/python2.7-5Z483E/python2.7-2.7.17=. -fstack-protector-strong -Wformat -Werror=format-security -fPIC -I/usr/include/python2.7 -c regex_2/_regex.c -o build/temp.linux-x86_64-2.7/regex_2/_regex.o
regex_2/_regex.c:48:10: fatal error: Python.h: No such file or directory
#include "Python.h"
^~~~~~~~~~
compilation terminated.
error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
----------------------------------------
ERROR: Command errored out with exit status 1: /usr/bin/python -u -c 'import sys, setuptools, tokenize; sys.argv[0] = '"'"'/tmp/pip-install-LpffN8/regex/setup.py'"'"'; file='"'"'/tmp/pip-install-LpffN8/regex/setup.py'"'"';f=getattr(tokenize, '"'"'open'"'"', open)(file);code=f.read().replace('"'"'\r\n'"'"', '"'"'\n'"'"');f.close();exec(compile(code, file, '"'"'exec'"'"'))' install --record /tmp/pip-record-afC3n9/install-record.txt --single-version-externally-managed --compile --install-headers /usr/local/include/python2.7/regex Check the logs for full command output.

from derrick.

ringtail avatar ringtail commented on May 22, 2024

centos需要安装下python-devel

from derrick.

ringtail avatar ringtail commented on May 22, 2024

另外测试下3.7的版本,应该已经可以工作了

from derrick.

ringtail avatar ringtail commented on May 22, 2024

if you find some error like: fatal error: Python.h: No such file or directory,Please install python-dev or python-devel with package manager.Windows please use powershell or winshell.

from derrick.

liyin37 avatar liyin37 commented on May 22, 2024

image
安装完成后执行Derrick 报错了

from derrick.

liyin37 avatar liyin37 commented on May 22, 2024

Traceback (most recent call last):
File "/usr/bin/derrick", line 5, in
from pkg_resources import load_entry_point
File "/usr/local/python3.7/lib/python3.7/site-packages/pkg_resources/init.py", line 3191, in
@_call_aside
File "/usr/local/python3.7/lib/python3.7/site-packages/pkg_resources/init.py", line 3175, in _call_aside
f(*args, **kwargs)
File "/usr/local/python3.7/lib/python3.7/site-packages/pkg_resources/init.py", line 3204, in _initialize_master_working_set
working_set = WorkingSet._build_master()
File "/usr/local/python3.7/lib/python3.7/site-packages/pkg_resources/init.py", line 583, in _build_master
ws.require(requires)
File "/usr/local/python3.7/lib/python3.7/site-packages/pkg_resources/init.py", line 900, in require
needed = self.resolve(parse_requirements(requirements))
File "/usr/local/python3.7/lib/python3.7/site-packages/pkg_resources/init.py", line 786, in resolve
raise DistributionNotFound(req, requirers)
pkg_resources.DistributionNotFound: The 'python-derrick==0.1.0' distribution was not found and is required by the application

from derrick.

ringtail avatar ringtail commented on May 22, 2024

Try to uninstall the old version and install with the command below pip3 install python-derrick==0.1.2 --index-url=https://pypi.org/simple

from derrick.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.