##行いたいこと
pipenvを用いて仮想環境を作る、これだけです…
##したこと、エラーメッセージ
コマンドプロンプト上で一行目のコードを走らせたところ以下のメッセージが出ました。
ディレクトリにpipfileがある状況でも、ない状況でも同じことがおこります。
C:\Users\namae\OneDrive\Document>pipenv install Creating a virtualenv for this project… Pipfile: C:\Users\namae\OneDrive\Document\Pipfile Using C:/Users/namae/AppData/Local/Programs/Python/Python38/python.exe (3.8.4) to create virtualenv… [ ===] Creating virtual environment...created virtual environment CPython3.8.4.final.0-64 in 1729ms creator CPython3Windows(dest=C:\Users\namae.virtualenvs\Document-93FUvPFU, clear=False, global=False) seeder FromAppData(download=False, pip=bundle, setuptools=bundle, wheel=bundle, via=copy, app_data_dir=C:\Users\namae\AppData\Local\pypa\virtualenv) added seed packages: pip==20.2.2, setuptools==49.6.0, wheel==0.35.1 activators BashActivator,BatchActivator,FishActivator,PowerShellActivator,PythonActivator,XonshActivator Successfully created virtual environment! Virtualenv location: C:\Users\namae.virtualenvs\Document-93FUvPFU Creating a Pipfile for this project… Pipfile.lock not found, creating… Locking [dev-packages] dependencies… Locking [packages] dependencies… Updated Pipfile.lock (1f10f9)! Traceback (most recent call last): File "c:\users\namae\appdata\local\programs\python\python38\lib\runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "c:\users\namae\appdata\local\programs\python\python38\lib\runpy.py", line 87, in _run_code exec(code, run_globals) File "C:\Users\namae\AppData\Local\Programs\Python\Python38\Scripts\pipenv.exe\__main__.py", line 7, in <module> File "C:\Users\namae\AppData\Local\Programs\Python\Python38\Lib\site-packages\pipenv\vendor\click\core.py", line 829, in __call__ return self.main(*args, **kwargs) File "C:\Users\namae\AppData\Local\Programs\Python\Python38\Lib\site-packages\pipenv\vendor\click\core.py", line 782, in main rv = self.invoke(ctx) (中略) File "c:\users\namae\appdata\local\programs\python\python38\lib\site-packages\pipenv\project.py", line 796, in get_or_create_lockfile if self.lockfile_exists and self.lockfile_content: File "c:\users\namae\appdata\local\programs\python\python38\lib\site-packages\pipenv\project.py", line 662, in lockfile_content return self.load_lockfile() File "c:\users\namae\appdata\local\programs\python\python38\lib\site-packages\pipenv\project.py", line 1054, in load_lockfile j["_meta"]["sources"][i]["url"] KeyError: 'url'
###生成されたpipfile
[[source]] name = "pypi" url = "https://pypi.org/simple" verify_ssl = true [dev-packages] [packages] [requires] python_version = "3.8"
###生成されたpipfile.lock
{ "_meta": { "hash": { "sha256": "c2384ad47b0fded84aa8d567ff10e9e32bb6e8da4cb9d05c0b5403e63a1f10f9" }, "pipfile-spec": 6, "requires": {}, "sources": [ {} ] }, "default": {}, "develop": {} }
調べてもどうしたらよいのか全くわかりません…
##環境
Windows10 home
回答2件
あなたの回答
tips
プレビュー