Failure to install packages due to duplicate RECORD files


I have a recurring problem with PyCharm Community 2019.1 and attempts to install, or upgrade python packages using pip, both through the settings interface and via the built in terminal on Windows 10 and . The error message given is, as an example:

Could not install packages due to an EnvironmentError: 'Path\to\venv\Lib\\site-packages\\setuptools-41.0.0.dist-info\\RECORD.pip' and 'Path\to\venv\\Lib\\site-packages\\setuptools-41.0.0.dist-info\\RECORD' are the same file


I am receiving this error for Python 3.7, 3.6 and 2.7. The error does not stop me installing the package, as a repeated attempt to install following the error will work, however for packages with multiple dependencies I have to restart the install for each package installed. Any help would be very much appreciated.


Hi Rob,

Do you have the same problem if you try to install those packages from the system terminal (outside of PyCharm) using the same interpreter?


Hi Sergey, it works fine when using pip through the system command prompt, so i'm guessing the issue is with pip in PyCharm.


Is it a local drive or some network one like Google File Stream?

Try recreating your virtualenv from scratch (remove existing one and configure again).


Please sign in to leave a comment.