のねのBlog

パソコンの問題や、ソフトウェアの開発で起きた問題など書いていきます。よろしくお願いします^^。

ERROR: Could not install packages due to an EnvironmentError:

pip install -r requirements.txt

以下のようなエラーが出た。

何回も、

pip install -r requirements.txt

を行うと、進むときもある。

進まない場合だけ、個別に、ダウングレードを行った。

ERROR: Could not install packages due to an EnvironmentError: [WinError 5] アクセスが拒否されました。: 'c:\\users\\m_fuj\\documents\\pych
arm\\my_project\\venv\\lib\\site-packages\\pytz-2020.1.dist-info\\'
Consider using the `--user` option or check the permissions.
Installing collected packages: appdirs, pytz, Babel, fonttools, pyclipper, booleanOperations, jmespath, urllib3, six, python-dateutil, do
cutils, botocore, s3transfer, boto3, certifi, chardet, compreffor, cu2qu, defcon, fontMath, fontParts, setuptools, fs, future, idna, imag
esize, MarkupSafe, Jinja2, lxml, macholib, numpy, pyparsing, packaging, pandas, pefile, pip, Pygments, pywin32-ctypes, PyInstaller, sip,
PyQt5, PyQt5-sip, requests, snowballstemmer, sphinxcontrib-websupport, ufoLib, ufo-extractor, ufo2ft, unicodedata2, xlrd
  Attempting uninstall: pytz
    Found existing installation: pytz 2020.1
    Uninstalling pytz-2020.1:
ERROR: Could not install packages due to an EnvironmentError: [WinError 5] アクセスが拒否されました。: 'c:\\users\\m_fuj\\documents\\pych
arm\\my_project\\venv\\lib\\site-packages\\pytz-2020.1.dist-info\\'
Consider using the `--user` option or check the permissions.
>pip install --user -r requirements.txt
ERROR: Can not perform a '--user' install. User site-packages are not visible in this virtualenv.