Poetry update has access denied

3.2k views Asked by At

I'm using poetry inside a conda environmentm on Windows. Although I'm working in an elevated shell (admin rights), I keep getting access denied on packages which involve .dll, such as tensorflow or scipy.

conda create --name test python=3.7
conda activate test
pip install poetry
poetry add "tensorflow=1.5.1" scipy pandas
poetry install
poetry add "tensorflow=1.4.1"
poetry install 

Will return me

ERROR: Could not install packages due to an EnvironmentError: [WinError 5] Access is denied:
1

There are 1 answers

1
Roelant On

So for those who are visiting here, my action plan now is:

  1. Move to an elevated shell
  2. Remove poetry cache from appdata.
  3. Run poetry install repeatedly. Often it will fail on a different package each time.
  4. If all fails, cheat by using pip install ... for that package