1

ドキュメントでvirtualenvが指定されていることは知っていますが、試してみると思いました:

pipenv install -r path/to/local_requirements.txt

rcssmin==1.0.6 と rjsmin==1.0.12 をインストールしようとすると失敗します。また、Microsoft Visual C++ 14.0 をインストールする必要があることも示されていますが、既にシステムにインストールされています。私は cookiecutter を初めて使用するので、これらの問題は無関係である可能性があります。以下エラーメッセージ。

$ pipenv install -r requirements/local.txt
Creating a virtualenv for this project...
Pipfile: C:\Users\Jim Wombles\dev\PAMG\Pipfile
Using c:\python36\python.exe (3.6.6) to create virtualenv...
Already using interpreter c:\python36\python.exe
Using base prefix 'c:\\python36'
New python executable in C:\Users\JIMWOM~1\VIRTUA~1\PAMG-G~1\Scripts\python.exe
Installing setuptools, pip, wheel...done.
Setting project for PAMG-GBO_NxgA to C:\Users\Jim Wombles\dev\PAMG

Virtualenv location: C:\Users\Jim Wombles\.virtualenvs\PAMG-GBO_NxgA
Creating a Pipfile for this project...
Requirements file provided! Importing into Pipfile...
Pipfile.lock not found, creating...
Locking [dev-packages] dependencies...
Locking [packages] dependencies...
Updated Pipfile.lock (582bd7)!
Installing dependencies from Pipfile.lock (582bd7)...
An error occurred while installing rcssmin==1.0.6! Will try again.
An error occurred while installing rjsmin==1.0.12! Will try again.
  ================================ 83/83 - 00:01:04
Installing initially failed dependencies...
Collecting rcssmin==1.0.6 ----------- 0/2 - 00:00:00
  Using cached https://files.pythonhosted.org/packages/e2/5f/852be8aa80d1c24de9b030cdb6532bc7e7a1c8461554f6edbe14335ba890/rcssmin-1.0.6.tar.gz
Building wheels for collected packages: rcssmin
  Running setup.py bdist_wheel for rcssmin: started
  Running setup.py bdist_wheel for rcssmin: finished with status 'error'
  Complete output from command c:\users\jimwom~1\virtua~1\pamg-g~1\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\JIMWOM~1\\AppData\\Local\\Temp\\pip-install-h2db57b0\\rcssmin\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" bdist_wheel -d C:\Users\JIMWOM~1\AppData\Local\Temp\pip-wheel-r35c5nc9 --python-tag cp36:
  running bdist_wheel
  running build
  running build_py
  creating build
  creating build\lib.win-amd64-3.6
  copying .\rcssmin.py -> build\lib.win-amd64-3.6
  warning: build_py: byte-compiling is disabled, skipping.

  running build_ext
  building '_rcssmin' extension
  error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

  ----------------------------------------
  Running setup.py clean for rcssmin
Failed to build rcssmin
Installing collected packages: rcssmin
  Running setup.py install for rcssmin: started
    Running setup.py install for rcssmin: finished with status 'error'
    Complete output from command c:\users\jimwom~1\virtua~1\pamg-g~1\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\JIMWOM~1\\AppData\\Local\\Temp\\pip-install-h2db57b0\\rcssmin\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\JIMWOM~1\AppData\Local\Temp\pip-record-x417vnjs\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\jimwom~1\virtua~1\pamg-g~1\include\site\python3.6\rcssmin:
    running install
    running build
    running build_py
    creating build
    creating build\lib.win-amd64-3.6
    copying .\rcssmin.py -> build\lib.win-amd64-3.6
    warning: build_py: byte-compiling is disabled, skipping.

    running build_ext
    building '_rcssmin' extension
    error: Microsoft Visual C++ 14.0 is required. Get it with "Microsoft Visual C++ Build Tools": http://landinghub.visualstudio.com/visual-cpp-build-tools

    ----------------------------------------

  Failed building wheel for rcssmin
Command "c:\users\jimwom~1\virtua~1\pamg-g~1\scripts\python.exe -u -c "import setuptools, tokenize;__file__='C:\\Users\\JIMWOM~1\\AppData\\Local\\Temp\\pip-install-h2db57b0\\rcssmin\\setup.py';f=getattr(tokenize, 'open', open)(__file__);code=f.read().replace('\r\n', '\n');f.close();exec(compile(code, __file__, 'exec'))" install --record C:\Users\JIMWOM~1\AppData\Local\Temp\pip-record-x417vnjs\install-record.txt --single-version-externally-managed --compile --install-headers c:\users\jimwom~1\virtua~1\pamg-g~1\include\site\python3.6\rcssmin" failed with error code 1 in C:\Users\JIMWOM~1\AppData\Local\Temp\pip-install-h2db57b0\rcssmin\

     ================================ 0/2 - 00:00:04
4

1 に答える 1

0

あなたの質問に直接答えるために。

いいえ。

私が知る限り、pipenv は内部で Pipfile の「標準」を使用しますが、後者は [packages] と [dev-packages] を除いて任意の要件セクションをサポートしていません。潜在的に他の環境も同様です。

発行 1425

ただし、それを fork し、pipenv を使用するように更新することは可能です。

于 2018-08-13T18:01:49.353 に答える