0
저는 setuptools를 사용하여 파이썬 용 모듈을 만들었습니다.setuptools를 사용하여 패키지를 제대로 만들지 못했습니다.
로컬로 설치하고 git에서 pip (버전 3.5)를 설치하려고했습니다. pip는 패키지가 설치되어 있고 "pip list"와 "pip freeze"가있는 설치된 패키지에 나열되어 있다고 말합니다. 내 스크립트에서 모듈을 가져 오려고하면 "ImportError : No module 'jackedCodeTimerPY'"가져 오기 오류가 발생합니다. 나는 잠시 동안 벽에 머리를 치고 있었고, 나는 이것이 정말로 간단한 문제라고 생각하고 나는 뭔가를 놓치고 있다고 생각합니다.
당신은 https://github.com/BebeSparkelSparkel/jackedCodeTimerPY내 setup.py에서 내 REPO을 찾을 수 있습니다
은 다음과 같습니다
내 디렉토리는 다음과 같습니다from setuptools import setup
setup(name='jackedCodeTimerPY',
version='0.0.0',
license='MIT',
description='Simple but powerful code timer that can measure execution time of one line, functions, imports and gives statistics (min/max/mean/total time, number of executions).',
author='William Rusnack',
author_email='[email protected]',
url='https://github.com/BebeSparkelSparkel/jackedCodeTimerPY',
classifiers=['Development Status :: 2 - Pre-Alpha', 'Programming Language :: Python :: 3'],
py_modules=["jackedCodeTimerPY"],
install_requires=['tabulate==0.7.5'],
)
:
LICENSE.md jackedCodeTimerPY.py
README.md jackedCodeTimerPY.pyc
__pycache__ setup.py
build small.jpg
dist t2.py
example.py tests.py
jackedCodeTimerPY.egg-info
w 예, ['time.perf_counter()'] (https://www.webucator.com/blog/2015/08/python-clocks-explained/)를보십시오. – wrwrwr
제안 해 주셔서 감사합니다. 데모 프로젝트에 가깝습니다. 전에는 잘 설치했기 때문에 지금 다른 곳에서는 잘못된 것이있을 것입니다. –
pip를 다시 설치했는데 이제 작동하는 것 같습니다. –