Common XP environment variables[转 ]

本文详细介绍了Windows系统中常见的环境变量及其用途,包括计算机名称、路径设置、临时文件目录等,帮助开发者更好地理解并利用这些环境变量进行软件配置与调试。
Common XP environment variables
ALLUSERSPROFILE      location of the All Users Profile.
APPDATA              location where applications store data by default.
CD                   current directory string.
CLIENTNAME           client's NETBIOS name when connected to terminal server session.
CMDCMDLINE           command line used to start the current cmd.exe.
CMDEXTVERSION        version number of the current Command Processor Extensions.
CommonProgramFiles   path to the Common Files folder.
COMPUTERNAME         name of the computer.
COMSPEC              path to the command shell executable.
DATE                 current date.
ERRORLEVEL           error code of the most recently used command.
HOMEDRIVE            drive letter is connected to the user's home directory.
HOMEPATH             full path of the user's home directory.
HOMESHARE            network path to the user's shared home directory.
LOGONSEVER           name of the domain controller that validated the current logon session.
NUMBER_OF_PROCESSORS   number of processors installed on the computer.
OS                   name of the operating system. 
                     (Windows XP and Windows 2000 list the operating system as Windows_NT.)
Path                 search path for executable files.
PATHEXT              file extensions that the operating system considers to be executable.
PROCESSOR_ARCHITECTURE   processor's chip architecture.
PROCESSOR_IDENTFIER  description of the processor.
PROCESSOR_LEVEL      model number of the computer's processor.
PROCESSOR_REVISION   revision number of the processor.
ProgramFiles         path to the Program Files folder.
PROMPT               command-prompt settings for the current interpreter.
RANDOM               random decimal number between 0 and 32767.
SESSIONNAME          connection and session names when connected to terminal server session.
SYSTEMDRIVE          drive containing the Windows root directory.
SYSTEMROOT           location of the Windows root directory.
TEMP and TMP         default temporary directories for applications that are available to 
                     users who are currently logged on.
TIME                 current time.
USERDOMAIN           name of the domain that contains the user's account.
USERNAME             name of the user currently logged on.
USERPROFILE          location of the profile for the current user.
WINDIR               location of the OS directory.

To read an environment variable, see these HowTo's for Powerbuilder , Java and VBScript .

>>> paddle.utils.run_check() Running verify PaddlePaddle program ... I1112 16:41:15.510614 346128 program_interpreter.cc:212] New Executor is Running. W1112 16:41:15.511327 346128 gpu_resources.cc:119] Please NOTE: device: 0, GPU Compute Capability: 8.6, Driver API Version: 13.0, Runtime API Version: 11.8 W1112 16:41:15.519338 346128 gpu_resources.cc:164] device: 0, cuDNN Version: 8.9. Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\utils\install_check.py", line 273, in run_check _run_static_single(use_cuda, use_xpu, use_custom, custom_device_name) File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\utils\install_check.py", line 151, in _run_static_single exe.run( File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\base\executor.py", line 1746, in run res = self._run_impl( ^^^^^^^^^^^^^^^ File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\base\executor.py", line 1952, in _run_impl ret = new_exe.run( ^^^^^^^^^^^^ File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\base\executor.py", line 831, in run tensors = self._new_exe.run( ^^^^^^^^^^^^^^^^^^ RuntimeError: In user code: File "<stdin>", line 1, in <module> File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\utils\install_check.py", line 273, in run_check _run_static_single(use_cuda, use_xpu, use_custom, custom_device_name) File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\utils\install_check.py", line 135, in _run_static_single input, out, weight = _simple_network() File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\utils\install_check.py", line 37, in _simple_network linear_out = paddle.nn.functional.linear(x=input, weight=weight, bias=bias) File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\nn\functional\common.py", line 1985, in linear helper.append_op( File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\base\layer_helper.py", line 44, in append_op return self.main_program.current_block().append_op(*args, **kwargs) File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\base\framework.py", line 4467, in append_op op = Operator( File "C:\Users\win10\AppData\Local\Programs\Python\Python312\Lib\site-packages\paddle\base\framework.py", line 3016, in __init__ for frame in traceback.extract_stack(): PreconditionNotMetError: The third-party dynamic library (cublas64_118.dll;cublas64_11.dll) that Paddle depends on is not configured correctly. (error code is 126) Suggestions: 1. Check if the third-party dynamic library (e.g. CUDA, CUDNN) is installed correctly and its version is matched with paddlepaddle you installed. 2. Configure third-party dynamic library environment variables as follows: - Linux: set LD_LIBRARY_PATH by `export LD_LIBRARY_PATH=...` - Windows: set PATH by `set PATH=XXX; (at ..\paddle\phi\backends\dynload\dynamic_loader.cc:312) [operator < matmul_v2 > error]
最新发布
11-13
在 IntelliJ IDEA 中,环境变量的设置和使用在开发过程中十分重要。环境变量可用于配置应用程序运行时的各种参数,如数据库连接信息、API 密钥等。 ### 环境变量的作用 环境变量可以为应用程序提供运行时所需的配置信息,避免将敏感信息或动态配置硬编码在代码中。例如,将数据库的连接 URL、用户名和密码设置为环境变量,不同的开发、测试和生产环境可以使用不同的配置,提高了代码的安全性和可维护性。 ### 设置环境变量的方法 #### 在运行配置中设置 - 打开要运行的项目。 - 点击菜单栏中的“Run” -> “Edit Configurations”。 - 在弹出的窗口中,选择你要配置的运行项(如 Application、JUnit 等)。 - 在“Environment variables”字段中,点击右侧的“…”按钮。 - 在弹出的“Environment variables”窗口中,点击“+”号添加新的环境变量,输入变量名和变量值,点击“OK”保存。 以下是一个简单的 Java 代码示例,用于获取环境变量: ```java public class EnvironmentVariableExample { public static void main(String[] args) { String variableValue = System.getenv("YOUR_VARIABLE_NAME"); System.out.println("The value of the environment variable is: " + variableValue); } } ``` #### 在系统环境变量中设置 也可以在操作系统的系统环境变量中设置,IntelliJ IDEA 会自动读取系统环境变量。不同操作系统设置系统环境变量的方法不同: - **Windows**:在“控制面板” -> “系统和安全” -> “系统” -> “高级系统设置” -> “环境变量”中进行设置。 - **Linux 和 macOS**:可以编辑 `~/.bashrc` 或 `~/.bash_profile` 文件,添加类似 `export YOUR_VARIABLE_NAME=your_value` 的语句,然后执行 `source ~/.bashrc` 或 `source ~/.bash_profile` 使配置生效。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值