Forum Discussion

linriss_nr's avatar
linriss_nr
Advocate I
3 years ago
Solved

Unable to set Python home directory

I'm currently attempting to set up my Power BI desktop instance up to work with Python, and on the advice of some Python tutorials am trying to use a Python virtual environment instead of the global ...
  • linriss_nr's avatar
    3 years ago

    Further update, following some additional research:

     

    It turns out that this behaviour can affect various applications, and is caused by an error with OneDrive.

    I followed the following advice found in this microsoft answers post to stop syncing my Desktop folder with OneDrive, and it resolved the issue in Power BI for me:

     

    - Right-click the OneDrive icon in the Notification area and click Settings.
    - Select the Backup tab, and click Manage Backup
    - In the Manage folder backup dialog, click on the Stop backup link for "Desktop"
    - Click Stop backup in the confirmation dialog that appears.

     

    I now have full access to the files and folders on my PC when trying to set the Python Home Directory.