Hi I am trying to import a method which is in wheel file for that I am installing it and when I am using this code
! pip install date_util-1.0-py2.py3-none-any.whl
from date_util-1.0-py2.py3-none-any import add_executiondate
I am getting error as invalid syntax
in the from
statement you need to use the name of the package inside the wheel, but you're using the file name ( date_util-1.0-py2.py3-none-any
), and it's not a valid Python identifier that is expected by Python
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.