Hi @ahmed salah ,
External Python scripts only have read access permission to their working directories, if you want to access to any other directory, you need give either read & execute and/or write permissions to NT Service\MSSQLLaunchpad service user account and ALL APPLCATION PACKAGES on this directory
Please refer to this doc:
SQL Server on Windows: Isolation changes for Machine Learning Services
In File Explorer, right click on the folder you want to use as working directory, and select Properties.
Select Security and click Edit... to change permissions.
Click Add...
Make sure the From this location is the local computer name.
Enter ALL APPLICATION PACKAGES in Enter the object names to select and click Check Names. Click OK.
Select Read & execute under the Allow column.
Select Write under the Allow column, if you want to grant write permissions.
Click OK and OK.
-------------
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.