xflr6 / graphviz

Simple Python interface for Graphviz
https://graphviz.readthedocs.io
MIT License
1.59k stars 209 forks source link

windows error: cannot name a file as piping.py? #194

Closed redreamality closed 1 year ago

redreamality commented 1 year ago

Got this error when installing this package. ERROR: Could not install packages due to an OSError: [Errno 13] Permission denied: 'C:\\Users\\o0oii\\AppData\\Roaming\\Python\\Python39\\site-packages\\graphviz\\piping.py' Check the permissions.

It's weird that windows cannot name a file as piping.py?
image

xflr6 commented 1 year ago

Can you provide information on how exactly you are trying to install graphviz and on the target system?

It's weird that windows cannot name a file as piping.py?

I don't think that the file name is the reason you get OSError: [Errno 13] Permission denied (I have it installed on Windows systems), but rather the permissions of the directory tree you are trying to install in vs. the permissions that the installation was started with.

See https://graphviz.readthedocs.io/en/stable/manual.html#installation:

For a system-wide install, this typically requires administrator access. For an isolated install, you can run the same inside a venv or a virtualenv.

On Windows, this usually means that the shell ( cmd, PowerShell) used to pip install must be run as Adminitstrator.

pip also has https://pip.pypa.io/en/stable/user_guide/#user-installs

redreamality commented 1 year ago

found reason, close huorong anti-virus