PsychoPy automatically imports packages, how can I disable that?

I created an Experiment in PsychoPy and did not load any packages in any code component in the builder. However, when compiling the experiment into Python code, there is a whole section that imports different packages before the experiment. As I want to upload the experiment to Pavlovia, I would like to stop that but I don´t know how. Ist there anything in the settings I have to specify to not accidentally load any libraries? Or could I import the libraries to Pavlovia manually somehow if they are needed?

The automatically created section looks as follows:

# --- Import packages ---
from psychopy import locale_setup
from psychopy import prefs
from psychopy import sound, gui, visual, core, data, event, logging, clock, colors, layout
from psychopy.constants import (NOT_STARTED, STARTED, PLAYING, PAUSED,
                                STOPPED, FINISHED, PRESSED, RELEASED, FOREVER)

import numpy as np  # whole numpy lib is available, prepend 'np.'
from numpy import (sin, cos, tan, log, log10, pi, average,
                   sqrt, std, deg2rad, rad2deg, linspace, asarray)
from numpy.random import random, randint, normal, shuffle, choice as randchoice
import os  # handy system and path functions
import sys  # to get file system encoding

import psychopy.iohub as io
from psychopy.hardware import keyboard

I would be very thankful if anyone could help me because otherwise my experiment won´t work online.

To create an experiment on Pavlovia, you need to compile your code into Javascript code, not Python. PsychoJs should do so automatically when you sync your experiment to Pavlovia.
You can also compile the code “manually” using the Javascript compilation button :compile_js:.