0
나는 python을 사용하여 jsonrpc2를 시도하고있다. python Importerror using jsonrpc2
def greeting(name):
return dict(message="Hello, %s!" % name)
가 그럼 난
runjsonrpc2 hello
를 실행 hello.py 나는 파일을 생성하지만 난
runjsonrpc2
가
sys.path
에서
hello.py
모듈을 찾을 수없는 것 같다
ImportError: No module named hello
예, 그것은 경로의 문제이다. 내 시스템은 windows7입니다. 나는 $ env : PYTHONPATH = "mypath"를 사용했다. 그것은 작동합니다. – user3220478